diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-07-18 23:51:27 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-07-18 23:51:27 +0000 |
commit | 164a716f964bba247c660bc70149234f95146871 (patch) | |
tree | 95a8a6f75cb2ed1bb07cb6019088db7348ebf4d4 /busybox/coreutils/mv.c | |
parent | 8c59a0bf0e9e2d87b0ff273ea3f0bf05bbbf6373 (diff) | |
download | busybox-w32-164a716f964bba247c660bc70149234f95146871.tar.gz busybox-w32-164a716f964bba247c660bc70149234f95146871.tar.bz2 busybox-w32-164a716f964bba247c660bc70149234f95146871.zip |
busybox-1.0.1-rc1.patch
http://busybox.net/lists/busybox/2005-July/014974.html
Diffstat (limited to 'busybox/coreutils/mv.c')
-rw-r--r-- | busybox/coreutils/mv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/busybox/coreutils/mv.c b/busybox/coreutils/mv.c index 4f08dedc0..e1c4529ad 100644 --- a/busybox/coreutils/mv.c +++ b/busybox/coreutils/mv.c | |||
@@ -99,10 +99,10 @@ DO_MOVE: | |||
99 | struct stat source_stat; | 99 | struct stat source_stat; |
100 | int source_exists; | 100 | int source_exists; |
101 | 101 | ||
102 | if (errno != EXDEV) { | 102 | if (errno != EXDEV || |
103 | (source_exists = cp_mv_stat(*argv, &source_stat)) < 1) { | ||
103 | bb_perror_msg("unable to rename `%s'", *argv); | 104 | bb_perror_msg("unable to rename `%s'", *argv); |
104 | } | 105 | } else { |
105 | else if ((source_exists = cp_mv_stat(*argv, &source_stat)) >= 0) { | ||
106 | if (dest_exists) { | 106 | if (dest_exists) { |
107 | if (dest_exists == 3) { | 107 | if (dest_exists == 3) { |
108 | if (source_exists != 3) { | 108 | if (source_exists != 3) { |