Hi, Jonathan Nieder wrote:
> echo "some data" >file > ln file link > ln -s file link.tmp > mv -f link.tmp link > > I would expect that to succeed. There's a patch upstream (d1b0155d, "mv: allow moving symlink onto same-inode dest with >= 2 hard links") that treats the symptoms. Unfortunately that patch does not solve the full problem: coreutils mv is still too clever for its own good and is still not compliant with the (now clarified) POSIX requirements. Not sure what to do with this bug report. Maybe it would be worth tracking "allow replacing a hard link by a symlink" and "use lstat, not stat, for same-file check, as required by POSIX" separately. Thanks, Jonathan -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

