From 3c3277f0bda79b66b35e5e965e5340624d29a459 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 26 Apr 2001 15:41:51 +0000 Subject: As Larry pointed out, this the off by one canbe fixed much more elegantly. --- chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chmod.c') diff --git a/chmod.c b/chmod.c index f22e5d06f..b1d75129b 100644 --- a/chmod.c +++ b/chmod.c @@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv) } /* Ok, ready to do the deed now */ - while (optind++ < argc-1) { + while (++optind < argc) { if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, fileAction, fileAction, NULL) == FALSE) { return EXIT_FAILURE; -- cgit v1.2.3