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 0bb1e75..83bb194 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) { + while (optind++ < argc-1) { if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, fileAction, fileAction, NULL) == FALSE) { return EXIT_FAILURE; |