]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When looking for "group daemon" (since that's what's in mtree), make sure
authorpeter <peter@FreeBSD.org>
Sat, 7 Sep 1996 01:43:08 +0000 (01:43 +0000)
committerpeter <peter@FreeBSD.org>
Sat, 7 Sep 1996 01:43:08 +0000 (01:43 +0000)
commit7e1f106f1d60201fe697397cad2462f3f8b9ec68
tree9473cf7ff18075ce63a9347953c8dae40df4e6b1
parent91405059905f25dd66e22d489907b1e7d64d903e
When looking for "group daemon" (since that's what's in mtree), make sure
we actually look for the *group* and not the user's gid.  user daemon
has traditionally been group 31 (guest).

Also clear out the groups vector so that it doesn't inherit the groups
of the invoking user (ever run rwhod by hand before?)  Unfortunately, we
can't empty the supplemental groups list because the !&@^#! egid is stored
in there! :-(
usr.sbin/rwhod/rwhod.c