From b14e3708a3e6b76781330169376184adb63f11e4 Mon Sep 17 00:00:00 2001 From: andersen Date: Thu, 26 Apr 2001 15:41:51 +0000 Subject: 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 --- coreutils/chgrp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/chgrp.c') 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) } /* 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; -- cgit v1.2.3-55-g6feb