From b048172ee57f2eb75840a5bbc8d0873be44a93f3 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Thu, 19 Jul 2001 11:33:24 +0000
Subject: [PATCH] Increment `i' in case of -S so that its argument isn't
treated as another, unknown option.
Submitted by: Naoki Kobayashi and
Harti Brandt , respectively.
Pointy hat to: dd
---
usr.sbin/ypbind/ypbind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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