]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp,mv: fix issues with preserving timestamps of copied symlinks
authorPádraig Brady <P@draigBrady.com>
Thu, 13 Aug 2009 09:39:10 +0000 (10:39 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 14 Aug 2009 15:10:53 +0000 (17:10 +0200)
commitf0a1f0df2295aaed418f201bbec67df120e1ac17
tree2ec21ea8d4ebfc3bf231baf3fccc2f7a91ce4a1a
parent8574c7432596abd185e94c92068d23eb2591ae64
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.
src/copy.c
tests/cp/abuse