get rid of supplementary groups.

This commit is contained in:
mrg 1997-04-22 10:33:07 +00:00
parent 00e4b647d9
commit 8a6057d663
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)tftpd.c 5.13 (Berkeley) 2/26/91";*/
static char rcsid[] = "$Id: tftpd.c,v 1.7 1995/06/04 20:48:22 jtc Exp $";
static char rcsid[] = "$Id: tftpd.c,v 1.8 1997/04/22 10:33:07 mrg Exp $";
#endif /* not lint */
/*
@ -145,6 +145,11 @@ main(argc, argv)
exit(1);
}
if (setgroups(0, NULL)) {
syslog(LOG_ERR, "setgroups: %m");
exit(1);
}
if (setuid(UID_NOBODY)) {
syslog(LOG_ERR, "setuid: %m");
exit(1);