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:
dd 2001-07-19 11:33:24 +00:00
parent 6f6246ae29
commit 2d7f264cbd

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