diff options
author | brian <brian@FreeBSD.org> | 1999-11-09 00:32:21 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-09 00:32:21 +0000 |
commit | 21f1d38d7df03523cf3bb43777199458aa51a7d6 (patch) | |
tree | 01aa82adc837ca49afefdd5b4c51380e3584bb7d /usr.sbin | |
parent | c173e32dd20dda555dda2506caf0fa18ae69f590 (diff) | |
download | FreeBSD-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.c | 1 |
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 */ |