diff options
author | Eric Andersen | 2001-04-26 14:56:45 +0000 |
---|---|---|
committer | Eric Andersen | 2001-04-26 14:56:45 +0000 |
commit | 30592a54514ca52253ed5f2eff64684e32d7ff05 (patch) | |
tree | 48eddf51ff5182396709bbd0f28aca99dd3e58a5 /coreutils/chgrp.c | |
parent | e55987896a716e483d3a292da4e105ee0280ed45 (diff) | |
download | busybox-30592a54514ca52253ed5f2eff64684e32d7ff05.zip busybox-30592a54514ca52253ed5f2eff64684e32d7ff05.tar.gz |
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
-Erik
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; |