summaryrefslogtreecommitdiff
path: root/gl/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-02-01 21:42:45 +0100
committerJim Meyering <meyering@redhat.com>2012-02-12 12:21:53 +0100
commitb01355a1dc4939a3967ee82ac0a6dd19702778c3 (patch)
treea8f6534979bebdda6d60a5985d9a7094322ae95b /gl/lib
parent31eeead93842c6581e0a9b21f6e8eb964d0c9309 (diff)
downloadcoreutils-b01355a1dc4939a3967ee82ac0a6dd19702778c3.tar.xz
mv: "mv A B" would sometimes succeed, yet A would remain, ...
But only when both A and B were hard links to the same symlink. * src/copy.c (same_file_ok): Handle another special case: the one in which we are moving a symlink onto a hard link to itself. In this case, we must explicitly tell the caller to unlink the source file. Otherwise, at least the linux-3.x kernel rename function would do nothing, as mandated by POSIX 2008. * tests/mv/symlink-onto-hardlink-to-self: New test. * tests/Makefile.am (TESTS): Add it. * NEWS (Bug fixes): Mention it. Reported by Bernhard Voelker in http://bugs.gnu.org/10686
Diffstat (limited to 'gl/lib')
0 files changed, 0 insertions, 0 deletions