diff options
author | dd <dd@FreeBSD.org> | 2001-07-19 11:33:24 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-07-19 11:33:24 +0000 |
commit | 2dcfabf4c9fecf80c5be347d0fe9ee6b8a6b045f (patch) | |
tree | 874863e9beb9997d3f650e548e6193b824453310 | |
parent | 6705744fe1888fb5f7cc365e5b8b0766b2b16eb2 (diff) | |
download | FreeBSD-src-2dcfabf4c9fecf80c5be347d0fe9ee6b8a6b045f.zip FreeBSD-src-2dcfabf4c9fecf80c5be347d0fe9ee6b8a6b045f.tar.gz |
Increment `i' in case of -S so that its argument isn't treated as
another, unknown option.
Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp> and
Harti Brandt <brandt@fokus.gmd.de>, respectively.
Pointy hat to: dd
-rw-r--r-- | usr.sbin/ypbind/ypbind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index bdc3aa4..5d8d055 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -416,7 +416,7 @@ char **argv; else if (strcmp("-s", argv[i]) == 0) ypsecuremode++; else if (strcmp("-S", argv[i]) == 0 && argc > i) - yp_restricted_mode(argv[i+1]); + yp_restricted_mode(argv[++i]); else if (strcmp("-m", argv[i]) == 0) yp_manycast++; else |