aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chgrp.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-26 15:41:51 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-26 15:41:51 +0000
commitb14e3708a3e6b76781330169376184adb63f11e4 (patch)
tree4110e6df0e3a6fe01d34bf575cb5c0039def1ec0 /coreutils/chgrp.c
parent0bcbf8c044db39ef82e24bbdcecf376c28168c8a (diff)
downloadbusybox-w32-b14e3708a3e6b76781330169376184adb63f11e4.tar.gz
busybox-w32-b14e3708a3e6b76781330169376184adb63f11e4.tar.bz2
busybox-w32-b14e3708a3e6b76781330169376184adb63f11e4.zip
As Larry pointed out, this the off by one canbe fixed much more elegantly.
git-svn-id: svn://busybox.net/trunk/busybox@2449 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/chgrp.c')
-rw-r--r--coreutils/chgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c
index 83bb19463..55e22f528 100644
--- a/coreutils/chgrp.c
+++ b/coreutils/chgrp.c
@@ -71,7 +71,7 @@ int chgrp_main(int argc, char **argv)
71 } 71 }
72 72
73 /* Ok, ready to do the deed now */ 73 /* Ok, ready to do the deed now */
74 while (optind++ < argc-1) { 74 while (++optind < argc) {
75 if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, 75 if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
76 fileAction, fileAction, NULL) == FALSE) { 76 fileAction, fileAction, NULL) == FALSE) {
77 return EXIT_FAILURE; 77 return EXIT_FAILURE;