mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(copy_internal): Use S_ISLNK only if defined.
This commit is contained in:
1 parent
88df9ef6f6
commit
c9f538deb9
1 file changed
+2
@@ -366,6 +366,7 @@ copy_internal (const char *src_path, const char *dst_path,
|
||||
same = (src_sb.st_ino == dst_sb.st_ino
|
||||
&& src_sb.st_dev == dst_sb.st_dev);
|
||||
|
||||
#ifdef S_ISLNK
|
||||
/* If we're preserving symlinks (--no-dereference) and the
|
||||
destination file is a symlink, use stat (not xstat) to
|
||||
see if it points back to the source. */
|
||||
@@ -377,6 +378,7 @@ copy_internal (const char *src_path, const char *dst_path,
|
||||
src_sb.st_dev == dst2_sb.st_dev))
|
||||
same = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (same)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user