diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-08 06:23:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-08 06:23:27 +0000 |
commit | 9edbbc84968cdaade36debe8548e5ebf26dff288 (patch) | |
tree | 8031666ced220fc41381b80743ace681928e19b6 | |
parent | 545618f56abaf295fd0becc3217bf9116d640940 (diff) |
If you are going to set optreset, you need to set optind to 1 as well.
-rw-r--r-- | sbin/ipf/ipf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ipf/ipf.c b/sbin/ipf/ipf.c index 721169d67cb..09aec089b00 100644 --- a/sbin/ipf/ipf.c +++ b/sbin/ipf/ipf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipf.c,v 1.14 1999/02/07 00:55:16 deraadt Exp $ */ +/* $OpenBSD: ipf.c,v 1.15 1999/02/08 06:23:26 millert Exp $ */ /* * Copyright (C) 1993-1998 by Darren Reed. * @@ -45,7 +45,7 @@ #if !defined(lint) static const char sccsid[] = "@(#)ipf.c 1.23 6/5/96 (C) 1993-1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ipf.c,v 1.14 1999/02/07 00:55:16 deraadt Exp $"; +static const char rcsid[] = "@(#)$Id: ipf.c,v 1.15 1999/02/08 06:23:26 millert Exp $"; #endif static void frsync __P((void)); @@ -94,6 +94,7 @@ char *argv[]; usage(); optreset = 1; + optind = 1; while ((c = getopt(argc, argv, OPTS)) != -1) { switch (c) { |