bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ln "" foo gives misleading error message


From: John Cowan
Subject: Re: ln "" foo gives misleading error message
Date: Tue, 15 Jan 2013 09:30:49 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

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   address@hidden    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]