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
This commit is contained in:
Dima Dorfman 2001-07-19 11:33:24 +00:00
parent df523897ea
commit b048172ee5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79953

View File

@ -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