diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-26 15:41:51 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-26 15:41:51 +0000 |
commit | 3c3277f0bda79b66b35e5e965e5340624d29a459 (patch) | |
tree | 4110e6df0e3a6fe01d34bf575cb5c0039def1ec0 /coreutils/chown.c | |
parent | 30592a54514ca52253ed5f2eff64684e32d7ff05 (diff) | |
download | busybox-w32-3c3277f0bda79b66b35e5e965e5340624d29a459.tar.gz busybox-w32-3c3277f0bda79b66b35e5e965e5340624d29a459.tar.bz2 busybox-w32-3c3277f0bda79b66b35e5e965e5340624d29a459.zip |
As Larry pointed out, this the off by one canbe fixed much more elegantly.
Diffstat (limited to '')
-rw-r--r-- | coreutils/chown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index 43d62b1e0..e714b2d7a 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -85,7 +85,7 @@ int chown_main(int argc, char **argv) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /* Ok, ready to do the deed now */ | 87 | /* Ok, ready to do the deed now */ |
88 | while (optind++ < argc-1) { | 88 | while (++optind < argc) { |
89 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 89 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
90 | fileAction, fileAction, NULL) == FALSE) { | 90 | fileAction, fileAction, NULL) == FALSE) { |
91 | return EXIT_FAILURE; | 91 | return EXIT_FAILURE; |