summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/privsep.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-04-23 06:00:51 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-04-23 06:00:51 +0000
commit14632e662989c71f0801fda8ae923584eb92c587 (patch)
treef73ebc65adc94ad45f15c4fa52ae4b94d276fd2b /usr.sbin/tcpdump/privsep.c
parent5448603ca39e972abb592127675c6e5409cef206 (diff)
Silence getopt() in the priv process. ok canacar@ henning@
Diffstat (limited to 'usr.sbin/tcpdump/privsep.c')
-rw-r--r--usr.sbin/tcpdump/privsep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c
index af49ac517ce..66d9d891d90 100644
--- a/usr.sbin/tcpdump/privsep.c
+++ b/usr.sbin/tcpdump/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.7 2004/04/08 12:24:07 avsm Exp $ */
+/* $OpenBSD: privsep.c,v 1.8 2004/04/23 06:00:50 otto Exp $ */
/*
* Copyright (c) 2003 Can Erkin Acar
@@ -176,6 +176,7 @@ priv_init(int argc, char **argv)
/* parse the arguments for required options so that the child
* need not send them back */
+ opterr = 0;
while ((i = getopt(argc, argv,
"ac:deE:fF:i:lnNOopqr:s:StT:vw:xXY")) != -1) {
switch (i) {