GNU bug report logs - #29475
filesystem does not allow ln to create bad symbolic link

Previous Next

Package: coreutils;

Reported by: bug-coreutils <at> trodman.com

Date: Mon, 27 Nov 2017 18:28:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: bug-coreutils <at> trodman.com, 29475 <at> debbugs.gnu.org
Subject: bug#29475: filesystem does not allow ln to create bad symbolic link
Date: Mon, 27 Nov 2017 14:37:25 -0800
On 11/27/2017 10:17 AM, bug-coreutils <at> trodman.com 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?





This bug report was last modified 6 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.