On Sun, Dec 03, 2000 at 05:22:42PM -0500, Roland McGrath wrote:
> That said, I hacked this patch, which might work.

It does, with one small glitch:

hurd:/mnt/x# ln -s "" foo
hurd:/mnt/x# ls -l
total 0
lrwxr-xr-x    1 root     root            0 Dec  4 14:42 foo ->
hurd:/mnt/x# ls foo
ls: : No such file or directory
hurd:/mnt/x# ls foo/
foo
hurd:/mnt/x# touch foo/a
hurd:/mnt/x# ls
a  foo


Note the ENOENT returned from ls foo. This is not exactly the same behaviour
as with a symlink to '.'. Another small point is that the output of "ls -F"
really gets confusing now:

hurd:/mnt/x# ls -l
total 0
lrwxr-xr-x    1 root     root            0 Dec  4 14:42 foo -> /

*grin* :)

As really nothing uses symlinks to "", there is little reason to worry about
the small glitch. I'd say check it in.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to