diff options
-rw-r--r-- | chgrp.c | 2 | ||||
-rw-r--r-- | chmod.c | 2 | ||||
-rw-r--r-- | chown.c | 2 | ||||
-rw-r--r-- | coreutils/chgrp.c | 2 | ||||
-rw-r--r-- | coreutils/chmod.c | 2 | ||||
-rw-r--r-- | coreutils/chown.c | 2 |
6 files changed, 6 insertions, 6 deletions
@@ -71,7 +71,7 @@ int chgrp_main(int argc, char **argv) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | /* Ok, ready to do the deed now */ | 73 | /* Ok, ready to do the deed now */ |
74 | while (optind++ < argc-1) { | 74 | while (++optind < argc) { |
75 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 75 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
76 | fileAction, fileAction, NULL) == FALSE) { | 76 | fileAction, fileAction, NULL) == FALSE) { |
77 | return EXIT_FAILURE; | 77 | return EXIT_FAILURE; |
@@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv) | |||
66 | } | 66 | } |
67 | 67 | ||
68 | /* Ok, ready to do the deed now */ | 68 | /* Ok, ready to do the deed now */ |
69 | while (optind++ < argc-1) { | 69 | while (++optind < argc) { |
70 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 70 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
71 | fileAction, fileAction, NULL) == FALSE) { | 71 | fileAction, fileAction, NULL) == FALSE) { |
72 | return EXIT_FAILURE; | 72 | return EXIT_FAILURE; |
@@ -85,7 +85,7 @@ int chown_main(int argc, char **argv) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /* Ok, ready to do the deed now */ | 87 | /* Ok, ready to do the deed now */ |
88 | while (optind++ < argc-1) { | 88 | while (++optind < argc) { |
89 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 89 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
90 | fileAction, fileAction, NULL) == FALSE) { | 90 | fileAction, fileAction, NULL) == FALSE) { |
91 | return EXIT_FAILURE; | 91 | return EXIT_FAILURE; |
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) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | /* Ok, ready to do the deed now */ | 73 | /* Ok, ready to do the deed now */ |
74 | while (optind++ < argc-1) { | 74 | while (++optind < argc) { |
75 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 75 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
76 | fileAction, fileAction, NULL) == FALSE) { | 76 | fileAction, fileAction, NULL) == FALSE) { |
77 | return EXIT_FAILURE; | 77 | return EXIT_FAILURE; |
diff --git a/coreutils/chmod.c b/coreutils/chmod.c index f22e5d06f..b1d75129b 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c | |||
@@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv) | |||
66 | } | 66 | } |
67 | 67 | ||
68 | /* Ok, ready to do the deed now */ | 68 | /* Ok, ready to do the deed now */ |
69 | while (optind++ < argc-1) { | 69 | while (++optind < argc) { |
70 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 70 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
71 | fileAction, fileAction, NULL) == FALSE) { | 71 | fileAction, fileAction, NULL) == FALSE) { |
72 | return EXIT_FAILURE; | 72 | return EXIT_FAILURE; |
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) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /* Ok, ready to do the deed now */ | 87 | /* Ok, ready to do the deed now */ |
88 | while (optind++ < argc-1) { | 88 | while (++optind < argc) { |
89 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, | 89 | if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, |
90 | fileAction, fileAction, NULL) == FALSE) { | 90 | fileAction, fileAction, NULL) == FALSE) { |
91 | return EXIT_FAILURE; | 91 | return EXIT_FAILURE; |