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