coreutils/tests
Pádraig Brady 594292a1d8 copy: link rather than copy symlinks, when --link used
This bug was introduced in commit ca9e212c, 2009-09-24,
"cp, mv: use linkat to guarantee semantics", which
inadvertently disabled the creation of hardlinks to symlinks.
However rather than implementing the intention of that commit
and relying on gnulib linkat emulation, we'll revert to the
previous emulation as that maintains ownership and timestamps.

* src/copy.c (copy_internal): Use our existing hardlink to
symlink emulation when link() might dereference the symlink.
Also ensure that we copy the timestamps of the original symlink
when we use the emulation.
* tests/cp/link-symlink: Add a test to ensure timestamps copied.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the fix.
Reported by Ruediger Meier
2011-04-01 14:17:27 +01:00
..
chgrp maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
chmod maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
chown maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
cp copy: link rather than copy symlinks, when --link used 2011-04-01 14:17:27 +01:00
dd maint: fix dd nocache test to be independent of current stdin 2011-03-05 09:53:00 +00:00
df maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
du du: don't infloop for --files0-from=DIR 2011-03-03 09:05:44 +01:00
id maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
install maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
ln maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
ls maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
misc tests: exercise tests new "==" operator 2011-03-22 07:13:59 +01:00
mkdir maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
mv tests: skip mv/i-3 on FreeBSD to avoid spurious failure 2011-02-04 14:59:03 +01:00
pr maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
readlink maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
rm maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
rmdir maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
tail-2 tests: inotify-rotate: avoid race condition with overloaded disk 2011-03-31 18:58:38 +02:00
touch tests: remove obsolete uses of "$$" in temporary file names 2011-01-28 23:19:45 +01:00
check.mk tests: fix bug in preceding check.mk change 2011-02-10 10:01:23 +01:00
Coreutils.pm maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
CuTmpdir.pm maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
envvar-check maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
fiemap-capable test: improve the cp fiemap tests 2011-02-08 22:46:25 +00:00
filefrag-extent-compare tests: fix the sparse-fiemap test 2011-03-19 23:58:49 +00:00
init.cfg tests: avoid unwarranted failure in mock-simulated non-SELinux env. 2011-03-28 12:00:12 +02:00
init.sh touch: update to latest gnulib to fix Solaris 10 touch segfault 2011-03-13 18:41:44 +01:00
lang-default * tests/lang-default (LC_ALL): Set to "C", so we get 2006-08-16 20:11:42 +00:00
Makefile.am copy: link rather than copy symlinks, when --link used 2011-04-01 14:17:27 +01:00
other-fs-tmpdir maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
require-perl tests: use "Exit $fail", not (exit $fail); exit $fail 2008-09-10 13:20:10 +02:00
sample-test build: update gnulib for version-etc copyright year update 2011-01-01 22:16:35 +01:00