summaryrefslogtreecommitdiff
path: root/usr.sbin/tftp-proxy
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-12 20:55:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-12 20:55:50 +0000
commitb00b106524bed1f83c86a4f4265c6abb1ddecaa1 (patch)
tree3e6ca83fd491deb30d47ad8530dcef183b1c680e /usr.sbin/tftp-proxy
parent185d713a0c9e50f0241ced3738bf7f2880ccb067 (diff)
Remove repeat of getpwnam() that is not needed at all.
Diffstat (limited to 'usr.sbin/tftp-proxy')
-rw-r--r--usr.sbin/tftp-proxy/tftp-proxy.c6
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);