bug#29475: filesystem does not allow ln to create bad symbolic link
From:
Paul Eggert
Subject:
bug#29475: filesystem does not allow ln to create bad symbolic link
Date:
Mon, 27 Nov 2017 14:37:25 -0800
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
On 11/27/2017 10:17 AM, address@hidden wrote:
$ ln -s not-there badlink
ln: failed to create symbolic link ‘badlink’: No such file or directory
What happens if you do the following shell command instead?
strace ln -s not-there badlink
On my platform (Fedora 27) the strace output ends this way:
stat("badlink", 0x7ffebc9ddbe0)Â Â Â Â Â Â Â Â = -1 ENOENT (No such file or
directory)
symlinkat("not-there", AT_FDCWD, "badlink") = 0
lseek(0, 0, SEEK_CUR)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = -1 ESPIPE (Illegal seek)
close(0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
close(1)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
close(2)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
exit_group(0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = ?
which is expected. What happens on your platform?