summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-19 11:33:24 +0000
committerdd <dd@FreeBSD.org>2001-07-19 11:33:24 +0000
commit2dcfabf4c9fecf80c5be347d0fe9ee6b8a6b045f (patch)
tree874863e9beb9997d3f650e548e6193b824453310 /usr.sbin/ypbind
parent6705744fe1888fb5f7cc365e5b8b0766b2b16eb2 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c2
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
OpenPOWER on IntegriCloud