diff options
author | Eric Andersen | 1999-10-17 05:43:39 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-17 05:43:39 +0000 |
commit | 9b5871888989b16f94cbba5dd304ac444def3afd (patch) | |
tree | 17187e3f6988830c0e329378e552995d083080ed /coreutils/mv.c | |
parent | cb6e25655f894c90e4befc4bee0e66794dd6858f (diff) | |
download | busybox-9b5871888989b16f94cbba5dd304ac444def3afd.zip busybox-9b5871888989b16f94cbba5dd304ac444def3afd.tar.gz |
Some fixes and such
Diffstat (limited to 'coreutils/mv.c')
-rw-r--r-- | coreutils/mv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/mv.c b/coreutils/mv.c index df56206..10a0822 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c @@ -41,7 +41,7 @@ extern int mv_main (int argc, char **argv) if (argc < 3) { fprintf (stderr, "Usage: %s %s", *argv, mv_usage); - return (FALSE); + exit (FALSE); } lastArg = argv[argc - 1]; @@ -49,8 +49,7 @@ extern int mv_main (int argc, char **argv) if ((argc > 3) && !dirFlag) { fprintf (stderr, "%s: not a directory\n", lastArg); - - return (FALSE); + exit (FALSE); } while (argc-- > 2) { @@ -80,5 +79,5 @@ extern int mv_main (int argc, char **argv) if (unlink (srcName) < 0) perror (srcName); } - return (TRUE); + exit (TRUE); } |