artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd67b77
)
err() instead of errx(); noted by tim
author
deraadt
<deraadt@openbsd.org>
Mon, 25 Jul 2016 02:35:26 +0000
(
02:35
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 25 Jul 2016 02:35:26 +0000
(
02:35
+0000)
usr.sbin/tcpdump/privsep.c
patch
|
blob
|
history
diff --git
a/usr.sbin/tcpdump/privsep.c
b/usr.sbin/tcpdump/privsep.c
index
cdc1914
..
ba7aa82
100644
(file)
--- a/
usr.sbin/tcpdump/privsep.c
+++ b/
usr.sbin/tcpdump/privsep.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: privsep.c,v 1.4
2 2016/07/24 22:46:32
deraadt Exp $ */
+/* $OpenBSD: privsep.c,v 1.4
3 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)
- err
x
(1, "unable to chroot");
+ err(1, "unable to chroot");
if (chdir("/") == -1)
err(1, "unable to chdir");