aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-07-19 11:33:24 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-07-19 11:33:24 +0000
commitb048172ee57f2eb75840a5bbc8d0873be44a93f3 (patch)
tree874863e9beb9997d3f650e548e6193b824453310 /usr.sbin/ypbind
parentdf523897ea84f155098593df82ac040482951a91 (diff)
downloadsrc-b048172ee57f2eb75840a5bbc8d0873be44a93f3.tar.gz
src-b048172ee57f2eb75840a5bbc8d0873be44a93f3.zip
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
Notes
Notes: svn path=/head/; revision=79953
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 bdc3aa4e9177..5d8d055642f2 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