mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
copy: prefer our hardlink to symlink emulation on OS X 10.10
* src/copy.c (CAN_HARDLINK_SYMLINKS): Don't enable use of linkat() on Darwin 14, as the gnulib fallback emulation there doesn't preserve ownership and timestamps etc. This fixes a test failure in tests/cp/link-symlink.sh * tests/cp/link-deref.sh: Adjust accordingly.
This commit is contained in:
1 parent
a41172a5c4
commit
67db18ce0f
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -104,7 +104,7 @@ rpl_mkfifo (char const *file, mode_t mode)
|
||||
|
||||
/* LINK_FOLLOWS_SYMLINKS is tri-state; if it is -1, we don't know
|
||||
how link() behaves, so assume we can't hardlink symlinks in that case. */
|
||||
#if defined HAVE_LINKAT || ! LINK_FOLLOWS_SYMLINKS
|
||||
#if (defined HAVE_LINKAT && ! LINKAT_SYMLINK_NOTSUP) || ! LINK_FOLLOWS_SYMLINKS
|
||||
# define CAN_HARDLINK_SYMLINKS 1
|
||||
#else
|
||||
# define CAN_HARDLINK_SYMLINKS 0
|
||||
|
||||
Reference in new issue
Block a user