aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chmod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-26 14:56:45 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-26 14:56:45 +0000
commit30592a54514ca52253ed5f2eff64684e32d7ff05 (patch)
tree48eddf51ff5182396709bbd0f28aca99dd3e58a5 /coreutils/chmod.c
parente55987896a716e483d3a292da4e105ee0280ed45 (diff)
downloadbusybox-w32-30592a54514ca52253ed5f2eff64684e32d7ff05.tar.gz
busybox-w32-30592a54514ca52253ed5f2eff64684e32d7ff05.tar.bz2
busybox-w32-30592a54514ca52253ed5f2eff64684e32d7ff05.zip
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
-Erik
Diffstat (limited to 'coreutils/chmod.c')
-rw-r--r--coreutils/chmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index 5e12e76b9..f22e5d06f 100644
--- a/coreutils/chmod.c
+++ b/coreutils/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;