diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-08-13 10:39:10 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-14 17:10:53 +0200 |
commit | f0a1f0df2295aaed418f201bbec67df120e1ac17 (patch) | |
tree | 2ec21ea8d4ebfc3bf231baf3fccc2f7a91ce4a1a /tests | |
parent | 8574c7432596abd185e94c92068d23eb2591ae64 (diff) | |
download | coreutils-f0a1f0df2295aaed418f201bbec67df120e1ac17.tar.xz |
cp,mv: fix issues with preserving timestamps of copied symlinks
* src/copy.c (copy_internal): On systems without utimensat don't
use utimens on a symlink, as that would dereference the symlink.
* tests/cp/abuse: To work around possible attribute preservation
failures breaking the test, use cp -dR rather than cp -a.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp/abuse | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cp/abuse b/tests/cp/abuse index 285c53157..e9086b8f5 100755 --- a/tests/cp/abuse +++ b/tests/cp/abuse @@ -37,7 +37,7 @@ for i in dangling-dest existing-dest; do test $i = existing-dest && echo i > t test $i = dangling-dest && rm -f t - cp -a a/1 b/1 c 2> out && fail=1 + cp -dR a/1 b/1 c 2> out && fail=1 compare out exp || fail=1 |