summaryrefslogtreecommitdiff
path: root/libexec/tftpd
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-10-22 01:55:40 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-10-22 01:55:40 +0000
commit83c54719edcd731b4a6619abe0dabb464fdb9b40 (patch)
tree045172a18647ad0f77840b21c3451c14036c8864 /libexec/tftpd
parentb1f2952a35837983092f04ef05f7a3b4ea757001 (diff)
Notes
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index 8740fd129e79..8b32f24780e5 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;