aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cp.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-12 15:42:48 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-12 15:42:48 +0000
commit2ce1edcf544ac675e6762c9861a6b918401ea716 (patch)
tree34245558cd448f01969679fc420de4dfd246dc13 /coreutils/cp.c
parentf811e07b072600a3784a92e5a1dc8a93dac477eb (diff)
downloadbusybox-w32-2ce1edcf544ac675e6762c9861a6b918401ea716.tar.gz
busybox-w32-2ce1edcf544ac675e6762c9861a6b918401ea716.tar.bz2
busybox-w32-2ce1edcf544ac675e6762c9861a6b918401ea716.zip
Latest and greatest.
-Erik
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r--coreutils/cp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c
index 797663d2b..4cdfc843b 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -91,7 +91,7 @@ extern int cp_main(int argc, char **argv)
91 91
92 if (argc < 3) { 92 if (argc < 3) {
93 fprintf(stderr, "Usage: %s", cp_usage); 93 fprintf(stderr, "Usage: %s", cp_usage);
94 return (FALSE); 94 exit (FALSE);
95 } 95 }
96 argc--; 96 argc--;
97 argv++; 97 argv++;
@@ -129,13 +129,13 @@ extern int cp_main(int argc, char **argv)
129 129
130 if ((argc > 3) && !dirFlag) { 130 if ((argc > 3) && !dirFlag) {
131 fprintf(stderr, "%s: not a directory\n", destName); 131 fprintf(stderr, "%s: not a directory\n", destName);
132 return (FALSE); 132 exit (FALSE);
133 } 133 }
134 134
135 while (argc-- >= 2) { 135 while (argc-- >= 2) {
136 srcName = *(argv++); 136 srcName = *(argv++);
137 return recursiveAction(srcName, recursiveFlag, followLinks, 137 exit( recursiveAction(srcName, recursiveFlag, followLinks,
138 fileAction, fileAction); 138 fileAction, fileAction));
139 } 139 }
140 return( TRUE); 140 exit( TRUE);
141} 141}