summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2016-07-25 02:35:26 +0000
committerderaadt <deraadt@openbsd.org>2016-07-25 02:35:26 +0000
commit7fa41b14ff0317b64dfb6e5347720ea0bc1675a7 (patch)
tree0f2930dbe583ffa8b649e44d78bdd06dc9bb5634
parentSplit the root vs not-root cases better with regards to chroot setup. (diff)
downloadwireguard-openbsd-7fa41b14ff0317b64dfb6e5347720ea0bc1675a7.tar.xz
wireguard-openbsd-7fa41b14ff0317b64dfb6e5347720ea0bc1675a7.zip
err() instead of errx(); noted by tim
-rw-r--r--usr.sbin/tcpdump/privsep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c
index cdc19141dd2..ba7aa82a15a 100644
--- a/usr.sbin/tcpdump/privsep.c
+++ b/usr.sbin/tcpdump/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.42 2016/07/24 22:46:32 deraadt Exp $ */
+/* $OpenBSD: privsep.c,v 1.43 2016/07/25 02:35:26 deraadt Exp $ */
/*
* Copyright (c) 2003 Can Erkin Acar
@@ -174,9 +174,8 @@ priv_init(int argc, char **argv)
if (pw == NULL)
errx(1, "unknown user _tcpdump");
- /* Attempt to chroot */
if (chroot(pw->pw_dir) == -1)
- errx(1, "unable to chroot");
+ err(1, "unable to chroot");
if (chdir("/") == -1)
err(1, "unable to chdir");