diff options
Diffstat (limited to 'src')
-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 4e38e0021..c2f21a340 100644 --- a/src/copy.c +++ b/src/copy.c @@ -1354,7 +1354,7 @@ copy_internal (char const *src_name, char const *dst_name, && (x->unlink_dest_before_opening || (x->preserve_links && 1 < dst_sb.st_nlink) || (x->dereference == DEREF_NEVER - && S_ISLNK (src_sb.st_mode)) + && ! S_ISREG (src_sb.st_mode)) )) { if (unlink (dst_name) != 0 && errno != ENOENT) |