From 468f504fd79a590e632193fc0ecf999b86ae5cba Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Thu, 26 Apr 2001 18:27:47 +0000 Subject: [PATCH] Fix handling of -R flag. --- chgrp.c | 1 + chmod.c | 1 + chown.c | 1 + coreutils/chgrp.c | 1 + coreutils/chmod.c | 1 + coreutils/chown.c | 1 + 6 files changed, 6 insertions(+) diff --git a/chgrp.c b/chgrp.c index 55e22f528..ec1a0370c 100644 --- a/chgrp.c +++ b/chgrp.c @@ -56,6 +56,7 @@ int chgrp_main(int argc, char **argv) switch (opt) { case 'R': recursiveFlag = TRUE; + break; default: show_usage(); } diff --git a/chmod.c b/chmod.c index b1d75129b..93b7f78cd 100644 --- a/chmod.c +++ b/chmod.c @@ -51,6 +51,7 @@ int chmod_main(int argc, char **argv) switch (opt) { case 'R': recursiveFlag = TRUE; + break; default: show_usage(); } diff --git a/chown.c b/chown.c index e714b2d7a..9ff287251 100644 --- a/chown.c +++ b/chown.c @@ -57,6 +57,7 @@ int chown_main(int argc, char **argv) switch (opt) { case 'R': recursiveFlag = TRUE; + break; default: show_usage(); } diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 55e22f528..ec1a0370c 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c @@ -56,6 +56,7 @@ int chgrp_main(int argc, char **argv) switch (opt) { case 'R': recursiveFlag = TRUE; + break; default: show_usage(); } diff --git a/coreutils/chmod.c b/coreutils/chmod.c index b1d75129b..93b7f78cd 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c @@ -51,6 +51,7 @@ int chmod_main(int argc, char **argv) switch (opt) { case 'R': recursiveFlag = TRUE; + break; default: show_usage(); } diff --git a/coreutils/chown.c b/coreutils/chown.c index e714b2d7a..9ff287251 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c @@ -57,6 +57,7 @@ int chown_main(int argc, char **argv) switch (opt) { case 'R': recursiveFlag = TRUE; + break; default: show_usage(); } -- 2.25.1