diff options
author | 2015-11-12 20:55:49 +0000 | |
---|---|---|
committer | 2015-11-12 20:55:49 +0000 | |
commit | 619f9a6dbdd6dbb716b2bc4d4a721644012ad96b (patch) | |
tree | ee914b723716d825d52c9789b3bfcee2b5a5b53e | |
parent | pledge the bgpd main process. Some of the promises can be improved upon (diff) | |
download | wireguard-openbsd-619f9a6dbdd6dbb716b2bc4d4a721644012ad96b.tar.xz wireguard-openbsd-619f9a6dbdd6dbb716b2bc4d4a721644012ad96b.zip |
Remove repeat of getpwnam() that is not needed at all.
-rw-r--r-- | usr.sbin/tftp-proxy/tftp-proxy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/tftp-proxy/tftp-proxy.c b/usr.sbin/tftp-proxy/tftp-proxy.c index a597b0805ee..4bb547ecf93 100644 --- a/usr.sbin/tftp-proxy/tftp-proxy.c +++ b/usr.sbin/tftp-proxy/tftp-proxy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftp-proxy.c,v 1.13 2015/11/12 19:13:47 deraadt Exp $ +/* $OpenBSD: tftp-proxy.c,v 1.14 2015/11/12 20:55:49 deraadt Exp $ * * Copyright (c) 2005 DLS Internet Services * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> @@ -301,10 +301,6 @@ main(int argc, char *argv[]) init_filter(NULL, verbose); /* revoke privs */ - pw = getpwnam(NOPRIV_USER); - if (!pw) - lerrx(1, "no such user %s", NOPRIV_USER); - if (chroot(CHROOT_DIR) == -1) lerr(1, "chroot %s", CHROOT_DIR); |