From b4cb5029c7eb3feedbefb10995c9ca878e63081f Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 22 Oct 2001 01:55:40 +0000 Subject: When we set our UID to `nobody', set an appropriate group also. Submitted by: peter --- libexec/tftpd/tftpd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libexec/tftpd/tftpd.c') diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 8740fd1..8b32f24 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -265,6 +265,7 @@ main(argc, argv) } chdir( "/" ); setuid(nobody->pw_uid); + setgroups(1, &nobody->pw_gid); } from.sin_family = AF_INET; -- cgit v1.1