diff options
-rw-r--r-- | libexec/tftpd/tftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 29fe0e7..d477d36 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -286,9 +286,9 @@ main(int argc, char *argv[]) syslog(LOG_ERR, "chroot: %s: %m", chroot_dir); exit(1); } - chdir( "/" ); - setuid(nobody->pw_uid); + chdir("/"); setgroups(1, &nobody->pw_gid); + setuid(nobody->pw_uid); } len = sizeof(me); |