Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-26 18:56:45 +0400
committerEric Andersen <andersen@codepoet.org>2001-04-26 18:56:45 +0400
commit30592a54514ca52253ed5f2eff64684e32d7ff05 (patch)
tree48eddf51ff5182396709bbd0f28aca99dd3e58a5 /coreutils/chmod.c
parente55987896a716e483d3a292da4e105ee0280ed45 (diff)
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)
}
/* Ok, ready to do the deed now */
- while (optind++ < argc) {
+ while (optind++ < argc-1) {
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
fileAction, fileAction, NULL) == FALSE) {
return EXIT_FAILURE;