commit | 3c3277f0bda79b66b35e5e965e5340624d29a459 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Thu Apr 26 15:41:51 2001 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Thu Apr 26 15:41:51 2001 +0000 |
tree | 4110e6df0e3a6fe01d34bf575cb5c0039def1ec0 | |
parent | 30592a54514ca52253ed5f2eff64684e32d7ff05 [diff] [blame] |
As Larry pointed out, this the off by one canbe fixed much more elegantly.
diff --git a/chmod.c b/chmod.c index f22e5d0..b1d7512 100644 --- a/chmod.c +++ b/chmod.c
@@ -66,7 +66,7 @@ } /* 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;