1 Feb 09:21
bug#10686: mv: moving hardlink of a softlink to the softlink does nothing
Bernhard Voelker <mail <at> bernhard-voelker.de>
2012-02-01 08:21:09 GMT
2012-02-01 08:21:09 GMT
Playing around with the latest mv checkin, I noticed another corner case: Create a file 'f', a symlink 'l' to it, and then a hardlink 's' to that symlink: $ touch f && ln -s f l && ln l s && ls -ogi total 0 6444 -rw-(Continue reading)r--r-- 1 0 Feb 1 08:52 f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 l -> f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 s -> f Trying to mv the hardlink over the symlink seems to succeed: $ ~/git/coreutils/src/mv s l ... but the name 's' was not unlinked: $ ls -ogi total 0 6444 -rw-r--r-- 1 0 Feb 1 08:52 f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 l -> f 6462 lrwxrwxrwx 2 1 Feb 1 08:52 s -> f Using the -v option looks also normal, but is a nop: $ ~/git/coreutils/src/mv -v s l ‘s’ -> ‘l’ $ ls -ogi total 0
RSS Feed