summaryrefslogtreecommitdiff
path: root/chgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'chgrp.c')
-rw-r--r--chgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chgrp.c b/chgrp.c
index 83bb194..55e22f5 100644
--- a/chgrp.c
+++ b/chgrp.c
@@ -71,7 +71,7 @@ int chgrp_main(int argc, char **argv)
}
/* Ok, ready to do the deed now */
- while (optind++ < argc-1) {
+ while (++optind < argc) {
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
fileAction, fileAction, NULL) == FALSE) {
return EXIT_FAILURE;