summaryrefslogtreecommitdiff
path: root/chmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'chmod.c')
-rw-r--r--chmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chmod.c b/chmod.c
index f22e5d0..b1d7512 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;