diff options
Diffstat (limited to 'coreutils/chgrp.c')
-rw-r--r-- | coreutils/chgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 83bb194..55e22f5 100644 --- a/coreutils/chgrp.c +++ b/coreutils/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; |