summaryrefslogtreecommitdiff
path: root/coreutils/mv.c
diff options
context:
space:
mode:
authorEric Andersen1999-10-09 00:25:00 +0000
committerEric Andersen1999-10-09 00:25:00 +0000
commitf811e07b072600a3784a92e5a1dc8a93dac477eb (patch)
tree820c6366f8bdacf617a9591cc2ca9dfe107b1fa3 /coreutils/mv.c
parent8341a1565306a54e685455d19efb0516ad3328a1 (diff)
downloadbusybox-f811e07b072600a3784a92e5a1dc8a93dac477eb.zip
busybox-f811e07b072600a3784a92e5a1dc8a93dac477eb.tar.gz
More stuff.
Diffstat (limited to 'coreutils/mv.c')
-rw-r--r--coreutils/mv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/mv.c b/coreutils/mv.c
index 610040d..df56206 100644
--- a/coreutils/mv.c
+++ b/coreutils/mv.c
@@ -37,7 +37,7 @@ extern int mv_main (int argc, char **argv)
const char *srcName;
const char *destName;
const char *lastArg;
- BOOL dirFlag;
+ int dirFlag;
if (argc < 3) {
fprintf (stderr, "Usage: %s %s", *argv, mv_usage);
@@ -63,7 +63,7 @@ extern int mv_main (int argc, char **argv)
destName = lastArg;
- if (dirFlag)
+ if (dirFlag==TRUE)
destName = buildName (destName, srcName);
if (rename (srcName, destName) >= 0)
@@ -74,7 +74,7 @@ extern int mv_main (int argc, char **argv)
continue;
}
- if (!copyFile (srcName, destName, TRUE))
+ if (!copyFile (srcName, destName, TRUE, FALSE))
continue;
if (unlink (srcName) < 0)