Subject: lib/30664: realpath and magic symlinks
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 07/04/2005 23:26:00
>Number: 30664
>Category: lib
>Synopsis: realpath and magic symlinks
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 04 23:26:00 +0000 2005
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD kaeru 3.99.7 NetBSD 3.99.7 (build.kaeru.nodebug) #83: Mon Jul 4 07:32:21 JST 2005 takashi@kaeru:/home/takashi/work/kernel/build.kaeru.nodebug i386
Architecture: i386
Machine: i386
>Description:
realpath(3) (or, more generally, userland code which resolves
symlinks by itsself using readlink(2)) doesn't handle
magic symlinks and can cause problems.
it's subtle because it isn't obvious which of userland or kernel
resolves a symlink for a given application.
>How-To-Repeat:
"install -lrs foo/bar/abc abc" where foo is a magic symlink.
>Fix:
document?
>Unformatted: