summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-11-09 00:32:21 +0000
committerbrian <brian@FreeBSD.org>1999-11-09 00:32:21 +0000
commit21f1d38d7df03523cf3bb43777199458aa51a7d6 (patch)
tree01aa82adc837ca49afefdd5b4c51380e3584bb7d /usr.sbin
parentc173e32dd20dda555dda2506caf0fa18ae69f590 (diff)
downloadFreeBSD-src-21f1d38d7df03523cf3bb43777199458aa51a7d6.zip
FreeBSD-src-21f1d38d7df03523cf3bb43777199458aa51a7d6.tar.gz
Don't treat -unit as a mode flag when counting mode flags.
Submitted by: Gert-Jan Vons <gert-jan@bigfoot.com>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 64b8483..5671a54 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -240,6 +240,7 @@ ProcessArgs(int argc, char **argv, struct switches *sw)
sw->unit = atoi(argv[arg]);
} else
sw->unit = atoi(cp + 4);
+ optc--; /* this option isn't exclusive */
} else if (strcmp(cp, "quiet") == 0) {
sw->quiet = 1;
optc--; /* this option isn't exclusive */
OpenPOWER on IntegriCloud