GNU bug report logs - #13447
ln "" foo gives misleading error message

Previous Next

Package: coreutils;

Reported by: Ken Irving <ken.irving <at> alaska.edu>

Date: Tue, 15 Jan 2013 08:32:01 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: Bob Proulx <bob <at> proulx.com>
Cc: 13447 <at> debbugs.gnu.org, Ken Irving <ken.irving <at> alaska.edu>
Subject: bug#13447: ln "" foo gives misleading error message
Date: Tue, 15 Jan 2013 10:58:36 +0100
Bob Proulx wrote:
> Jim Meyering wrote:
>> Pádraig Brady wrote:
>> > Interestingly I notice that solaris for example allows a NULL old_path.
>>
>> That Solaris behavior is contrary to POSIX 2008
>> http://pubs.opengroup.org/onlinepubs/9699919799/functions/symlink.html
>
> Where does it say this?  I read it through in detail but I didn't see
> that it required a diagnostic to be emitted in the case that value is
> am empty string.  What did I miss?

Oh!  You're right.  Thanks for pointing that out.
It's only the source (2nd argument) to symlink that may not
be the empty string.

  ERRORS

      These functions shall fail if:

      [EACCES]
      ...
      [ENOENT]
          A component of path2 does not name an existing file or path2 is
          an empty string.

There is no restriction on "path1".




This bug report was last modified 12 years and 188 days ago.

Previous Next


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