"ln --backup f f" produces a misleading diagnostic:
authorJim Meyering <jim@meyering.net>
Sat, 18 Nov 2006 19:00:39 +0000 (20:00 +0100)
committerJim Meyering <jim@meyering.net>
Sat, 18 Nov 2006 19:00:39 +0000 (20:00 +0100)
commit0cafba44bbef7c5eb64979544a1ec95a389ec55f
tree7bfbb62a72231e651643c6545b5f00f697be1254
parent1a0333565f1a89d87b36e7a5c83bac9c145a9916
"ln --backup f f" produces a misleading diagnostic:
ln: creating hard link `f' => `f': No such file or directory
* src/ln.c (do_link): Give a better diagnostic in this unusual case.
(do_link): Rename local: s/lstat_ok/dest_lstat_ok/.
* tests/ln/Makefile.am (TESTS): Add hard-backup.
* tests/ln/hard-backup: New test for the above.
ChangeLog
src/ln.c
tests/ln/Makefile.am
tests/ln/hard-backup [new file with mode: 0755]