diff options
-rw-r--r-- | src/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c index 88402c03b..c8c7a50b8 100644 --- a/src/copy.c +++ b/src/copy.c @@ -508,7 +508,7 @@ same_file_ok (const char *src_path, const struct stat *src_sb, partition. */ if (x->unlink_dest_before_opening && S_ISLNK (dst_sb_link->st_mode)) - return src_sb_link->st_dev == src_sb_link->st_dev; + return dst_sb_link->st_dev == src_sb_link->st_dev; if (x->xstat == lstat) { |