From 10a7a93235ca613c14acbdf316ea0bf9fb8cbc6a Mon Sep 17 00:00:00 2001 From: kraai Date: Tue, 11 Jun 2002 13:25:26 +0000 Subject: * 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 --- libbb/copy_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') 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) 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; -- cgit v1.2.3-55-g6feb