Apply vodz' last_patch52
[oweals/busybox.git] / libbb / copy_file.c
index ea05c9b8e2a6f4e9a9d8fcbf5118d8ebf759cf8d..3d174ddb3464db5fb4d2a69450b253efab9280c2 100644 (file)
@@ -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;