diff options
author | Zheng, Lei <zhenglei@pmail.ntu.edu.sg> | 2011-11-20 16:46:31 +0800 |
---|---|---|
committer | Zheng, Lei <zhenglei@pmail.ntu.edu.sg> | 2011-11-20 16:46:31 +0800 |
commit | 681755bcf5506109375e6fb9fc777461a704cf36 (patch) | |
tree | 77c0c3c05448cde4d64c0f743d252c7db3ccc9da /libbb/copy_file.c | |
parent | 846ac8422390ed9aa1f572a6089f2a7fc41f4aed (diff) | |
download | busybox-w32-681755bcf5506109375e6fb9fc777461a704cf36.tar.gz busybox-w32-681755bcf5506109375e6fb9fc777461a704cf36.tar.bz2 busybox-w32-681755bcf5506109375e6fb9fc777461a704cf36.zip |
Added missing stat() tweaks for mingw port
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r-- | libbb/copy_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 2134ee046..d9bbb6ba3 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -105,12 +105,15 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags) | |||
105 | return -1; | 105 | return -1; |
106 | } | 106 | } |
107 | } else { | 107 | } else { |
108 | #if !ENABLE_PLATFORM_MINGW32 | ||
109 | /* MinGW does not have inode, and does not use device */ | ||
108 | if (source_stat.st_dev == dest_stat.st_dev | 110 | if (source_stat.st_dev == dest_stat.st_dev |
109 | && source_stat.st_ino == dest_stat.st_ino | 111 | && source_stat.st_ino == dest_stat.st_ino |
110 | ) { | 112 | ) { |
111 | bb_error_msg("'%s' and '%s' are the same file", source, dest); | 113 | bb_error_msg("'%s' and '%s' are the same file", source, dest); |
112 | return -1; | 114 | return -1; |
113 | } | 115 | } |
116 | #endif | ||
114 | dest_exists = 1; | 117 | dest_exists = 1; |
115 | } | 118 | } |
116 | 119 | ||