mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
Fix a silly off-by-one error noticed by Santiago Garcia Mantinan <manty@debian.org>
-Erik
This commit is contained in:
parent
e55987896a
commit
30592a5451
2
chgrp.c
2
chgrp.c
@ -71,7 +71,7 @@ int chgrp_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, ready to do the deed now */
|
/* Ok, ready to do the deed now */
|
||||||
while (optind++ < argc) {
|
while (optind++ < argc-1) {
|
||||||
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
||||||
fileAction, fileAction, NULL) == FALSE) {
|
fileAction, fileAction, NULL) == FALSE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
2
chmod.c
2
chmod.c
@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, ready to do the deed now */
|
/* Ok, ready to do the deed now */
|
||||||
while (optind++ < argc) {
|
while (optind++ < argc-1) {
|
||||||
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
||||||
fileAction, fileAction, NULL) == FALSE) {
|
fileAction, fileAction, NULL) == FALSE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
2
chown.c
2
chown.c
@ -85,7 +85,7 @@ int chown_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, ready to do the deed now */
|
/* Ok, ready to do the deed now */
|
||||||
while (optind++ < argc) {
|
while (optind++ < argc-1) {
|
||||||
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
||||||
fileAction, fileAction, NULL) == FALSE) {
|
fileAction, fileAction, NULL) == FALSE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
@ -71,7 +71,7 @@ int chgrp_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, ready to do the deed now */
|
/* Ok, ready to do the deed now */
|
||||||
while (optind++ < argc) {
|
while (optind++ < argc-1) {
|
||||||
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
||||||
fileAction, fileAction, NULL) == FALSE) {
|
fileAction, fileAction, NULL) == FALSE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, ready to do the deed now */
|
/* Ok, ready to do the deed now */
|
||||||
while (optind++ < argc) {
|
while (optind++ < argc-1) {
|
||||||
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
||||||
fileAction, fileAction, NULL) == FALSE) {
|
fileAction, fileAction, NULL) == FALSE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
@ -85,7 +85,7 @@ int chown_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, ready to do the deed now */
|
/* Ok, ready to do the deed now */
|
||||||
while (optind++ < argc) {
|
while (optind++ < argc-1) {
|
||||||
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE,
|
||||||
fileAction, fileAction, NULL) == FALSE) {
|
fileAction, fileAction, NULL) == FALSE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user