diff options
author | Eric Andersen | 1999-10-12 15:42:48 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-12 15:42:48 +0000 |
commit | 2ce1edcf544ac675e6762c9861a6b918401ea716 (patch) | |
tree | 34245558cd448f01969679fc420de4dfd246dc13 /coreutils/cp.c | |
parent | f811e07b072600a3784a92e5a1dc8a93dac477eb (diff) | |
download | busybox-2ce1edcf544ac675e6762c9861a6b918401ea716.zip busybox-2ce1edcf544ac675e6762c9861a6b918401ea716.tar.gz |
Latest and greatest.
-Erik
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r-- | coreutils/cp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c index 797663d..4cdfc84 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c @@ -91,7 +91,7 @@ extern int cp_main(int argc, char **argv) if (argc < 3) { fprintf(stderr, "Usage: %s", cp_usage); - return (FALSE); + exit (FALSE); } argc--; argv++; @@ -129,13 +129,13 @@ extern int cp_main(int argc, char **argv) if ((argc > 3) && !dirFlag) { fprintf(stderr, "%s: not a directory\n", destName); - return (FALSE); + exit (FALSE); } while (argc-- >= 2) { srcName = *(argv++); - return recursiveAction(srcName, recursiveFlag, followLinks, - fileAction, fileAction); + exit( recursiveAction(srcName, recursiveFlag, followLinks, + fileAction, fileAction)); } - return( TRUE); + exit( TRUE); } |