aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r--coreutils/chown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c
index 43d62b1e0..e714b2d7a 100644
--- a/coreutils/chown.c
+++ b/coreutils/chown.c
@@ -85,7 +85,7 @@ int chown_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;