Fix handling of -R flag.

This commit is contained in:
Matt Kraai 2001-04-26 18:27:47 +00:00
parent c1bdffe99b
commit 468f504fd7
6 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,7 @@ int chgrp_main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'R': case 'R':
recursiveFlag = TRUE; recursiveFlag = TRUE;
break;
default: default:
show_usage(); show_usage();
} }

View File

@ -51,6 +51,7 @@ int chmod_main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'R': case 'R':
recursiveFlag = TRUE; recursiveFlag = TRUE;
break;
default: default:
show_usage(); show_usage();
} }

View File

@ -57,6 +57,7 @@ int chown_main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'R': case 'R':
recursiveFlag = TRUE; recursiveFlag = TRUE;
break;
default: default:
show_usage(); show_usage();
} }

View File

@ -56,6 +56,7 @@ int chgrp_main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'R': case 'R':
recursiveFlag = TRUE; recursiveFlag = TRUE;
break;
default: default:
show_usage(); show_usage();
} }

View File

@ -51,6 +51,7 @@ int chmod_main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'R': case 'R':
recursiveFlag = TRUE; recursiveFlag = TRUE;
break;
default: default:
show_usage(); show_usage();
} }

View File

@ -57,6 +57,7 @@ int chown_main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'R': case 'R':
recursiveFlag = TRUE; recursiveFlag = TRUE;
break;
default: default:
show_usage(); show_usage();
} }