diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-26 14:56:45 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-26 14:56:45 +0000 |
commit | 0bcbf8c044db39ef82e24bbdcecf376c28168c8a (patch) | |
tree | 48eddf51ff5182396709bbd0f28aca99dd3e58a5 /coreutils/chmod.c | |
parent | 3f60ebccf947ef9f802c770289580d4f668974b8 (diff) | |
download | busybox-w32-0bcbf8c044db39ef82e24bbdcecf376c28168c8a.tar.gz busybox-w32-0bcbf8c044db39ef82e24bbdcecf376c28168c8a.tar.bz2 busybox-w32-0bcbf8c044db39ef82e24bbdcecf376c28168c8a.zip |
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@2448 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/chmod.c')
-rw-r--r-- | coreutils/chmod.c | 2 |
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; |