Subject: lib/30664: realpath and magic symlinks
To: None <,,>
From: None <>
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 <>
>Release:        NetBSD 3.99.7

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
	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.
	"install -lrs foo/bar/abc abc" where foo is a magic symlink.