[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13447: ln "" foo gives misleading error message
From: |
Pádraig Brady |
Subject: |
bug#13447: ln "" foo gives misleading error message |
Date: |
Thu, 17 Jan 2013 13:09:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
On 01/15/2013 02:27 PM, Jim Meyering wrote:
Pádraig Brady wrote:
...
I could go either way.
There is precedent, but it's such a corner case,
it may not be worth the added code.
given the confusion above, it might be worth the
clarification error message.
Yes, I've demonstrated that rather well ;-)
Note to add the error robustly,
we'd have to check that ENOENT wasn't
in fact being generated for the link name.
That would involve stat()s and TOCTOU issues.
This Linux misinterpretation of POSIX has
been present for a long time as can be seen by
searching for sys_symlink in:
http://repo.or.cz/w/davej-history.git/blame/HEAD:/fs/namei.c
I sent the attached path to the kernel list,
to see can we address it directly there.
thanks,
Pádraig.
symlink-empty.diff
Description: Text Data
- bug#13447: ln "" foo gives misleading error message, (continued)
- bug#13447: ln "" foo gives misleading error message, Bob Proulx, 2013/01/15
- bug#13447: ln "" foo gives misleading error message, Bernhard Voelker, 2013/01/15
- bug#13447: ln "" foo gives misleading error message, Jim Meyering, 2013/01/15
- bug#13447: ln "" foo gives misleading error message, Eric Blake, 2013/01/15
- bug#13447: ln "" foo gives misleading error message, Geoff Clare, 2013/01/15
- bug#13447: ln "" foo gives misleading error message, Joerg Schilling, 2013/01/16
- bug#13447: ln "" foo gives misleading error message, Paul Eggert, 2013/01/16
- bug#13447: ln "" foo gives misleading error message, Eric Blake, 2013/01/17
- bug#13447: ln "" foo gives misleading error message, Pádraig Brady, 2013/01/15
- bug#13447: ln "" foo gives misleading error message, Jim Meyering, 2013/01/15
- bug#13447: ln "" foo gives misleading error message,
Pádraig Brady <=
- bug#13447: ln "" foo gives misleading error message, Jim Meyering, 2013/01/17
bug#13447: ln "" foo gives misleading error message, Bob Proulx, 2013/01/15
bug#13447: ln "" foo gives misleading error message, Bernhard Voelker, 2013/01/15