diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-06-11 13:25:26 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-06-11 13:25:26 +0000 |
commit | 10a7a93235ca613c14acbdf316ea0bf9fb8cbc6a (patch) | |
tree | dd1a3455c41d3431c294a09aadebcfa343700b79 /libbb | |
parent | f0479c04470a5cb8de27c6fdda4c3284abb55201 (diff) | |
download | busybox-w32-10a7a93235ca613c14acbdf316ea0bf9fb8cbc6a.tar.gz busybox-w32-10a7a93235ca613c14acbdf316ea0bf9fb8cbc6a.tar.bz2 busybox-w32-10a7a93235ca613c14acbdf316ea0bf9fb8cbc6a.zip |
* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.
git-svn-id: svn://busybox.net/trunk/busybox@4882 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index ea05c9b8e..3d174ddb3 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -55,7 +55,7 @@ int copy_file(const char *source, const char *dest, int flags) | |||
55 | dest_exists = 0; | 55 | dest_exists = 0; |
56 | } | 56 | } |
57 | 57 | ||
58 | if (dest_exists && source_stat.st_rdev == dest_stat.st_rdev && | 58 | if (dest_exists && source_stat.st_dev == dest_stat.st_dev && |
59 | source_stat.st_ino == dest_stat.st_ino) { | 59 | source_stat.st_ino == dest_stat.st_ino) { |
60 | error_msg("`%s' and `%s' are the same file", source, dest); | 60 | error_msg("`%s' and `%s' are the same file", source, dest); |
61 | return -1; | 61 | return -1; |