summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2016-07-25 02:35:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2016-07-25 02:35:27 +0000
commita90353f2b9b5e7088ab85c43bf2f79994013c6dc (patch)
tree1b4a084e1c5b6f29735ec3e8712b8343a139d63e /usr.sbin
parent6289f1d44ddd0287fb8e473069ee2cc5bf79edd8 (diff)
err() instead of errx(); noted by tim
Diffstat (limited to 'usr.sbin')
-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");