diff options
author | Matt Kraai | 2002-06-11 13:25:26 +0000 |
---|---|---|
committer | Matt Kraai | 2002-06-11 13:25:26 +0000 |
commit | 9ef2ea27d4b68d02bf3b18062cbed973a174b5ce (patch) | |
tree | dd1a3455c41d3431c294a09aadebcfa343700b79 /libbb | |
parent | 360060252ae8955123db31c376afad6f3fdc82eb (diff) | |
download | busybox-9ef2ea27d4b68d02bf3b18062cbed973a174b5ce.zip busybox-9ef2ea27d4b68d02bf3b18062cbed973a174b5ce.tar.gz |
* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.
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 ea05c9b..3d174dd 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) dest_exists = 0; } - if (dest_exists && source_stat.st_rdev == dest_stat.st_rdev && + if (dest_exists && source_stat.st_dev == dest_stat.st_dev && source_stat.st_ino == dest_stat.st_ino) { error_msg("`%s' and `%s' are the same file", source, dest); return -1; |