]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ln: fix replacing symbolic links whose targets can't exist
authorPádraig Brady <P@draigBrady.com>
Fri, 17 Jan 2014 03:54:29 +0000 (03:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 17 Jan 2014 11:52:42 +0000 (11:52 +0000)
commit7fa1641db049912f59654153d077953714720ca2
treeb9bf1910a6fa9f1ad26fb5d324455a0aa53b83a9
parent745de6dca52ef32cdaf9c459414b53d8a48459c3
ln: fix replacing symbolic links whose targets can't exist

* src/ln.c (errno_nonexisting): A new function to determine if
the errno implies that a file doesn't or can't (currently) exist.
(target_directory_operand): Use the new function to expand the
set of errors we handle.
* tests/ln/sf-1.sh: Add test cases for the newly handled errors.
* THANKS.in: Mention the reporter.
* NEWS: Mention the bug fix.
NEWS
THANKS.in
src/ln.c
tests/ln/sf-1.sh