When we set our UID to `nobody', set an appropriate group also.

Submitted by:	peter
This commit is contained in:
obrien 2001-10-22 01:55:40 +00:00
parent 9e58a4ded7
commit 383694ca34

View File

@ -265,6 +265,7 @@ main(argc, argv)
} }
chdir( "/" ); chdir( "/" );
setuid(nobody->pw_uid); setuid(nobody->pw_uid);
setgroups(1, &nobody->pw_gid);
} }
from.sin_family = AF_INET; from.sin_family = AF_INET;