Re: ln "" foo gives misleading error message

John Cowan <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Andreas Schwab scripsit:

> An empty name never resolves to a file, so any attempt to follow this
> symlink should fail with ENOENT (but not the symlink creation).

On Solaris 9, an empty symbolic link can be freely created, and it
resolves to the current working directory, as does an attempt to open
"" directly.  On Cygwin, attempting to create a zero-length symbolic
link fails with ENOENT, just as on Linux.

-- 
John Cowan   [email protected]    http://ccil.org/~cowan
I am he that buries his friends alive and drowns them and draws them
alive again from the water. I came from the end of a bag, but no bag
went over me.  I am the friend of bears and the guest of eagles. I am
Ringwinner and Luckwearer; and I am Barrel-rider.  --Bilbo to Smaug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.