aboutsummaryrefslogtreecommitdiff
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 5e12e76b9..f22e5d06f 100644
--- a/chmod.c
+++ b/chmod.c
@@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv)
66 } 66 }
67 67
68 /* Ok, ready to do the deed now */ 68 /* Ok, ready to do the deed now */
69 while (optind++ < argc) { 69 while (optind++ < argc-1) {
70 if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, 70 if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
71 fileAction, fileAction, NULL) == FALSE) { 71 fileAction, fileAction, NULL) == FALSE) {
72 return EXIT_FAILURE; 72 return EXIT_FAILURE;