bug-hurd
[Top][All Lists]
Advanced

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

Bug#78678: hurd: symlink to empty name crashes libdiskfs


From: Marcus Brinkmann
Subject: Bug#78678: hurd: symlink to empty name crashes libdiskfs
Date: Mon, 4 Dec 2000 14:51:30 +0100
User-agent: Mutt/1.1.4i

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 brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de




reply via email to

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