Subject: Re: kern/35675 (magiclinks implementation broken)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 04/05/2007 03:55:03
The following reply was made to PR kern/35675; it has been noted by GNATS.

From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
To: christos@zoulas.com
Cc: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org,
	netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, xtraeme@netbsd.org,
	juan@xtrarom.org, core@netbsd.org
Subject: Re: kern/35675 (magiclinks implementation broken)
Date: Thu,  5 Apr 2007 12:53:47 +0900 (JST)

 > | can you explain why realpath should be a system call?
 > 
 > Because it is quite pointless to do string gymnastics in userland
 > where the kernel has all the code to do this. Our code has been
 > historically broken:
 > 
 > - we had bugs where we forgot to NUL terminate
 
 such mistakes can happen in kernel as well.
 and their implications can be much worse in kernel.
 
 > - we had bugs where the code was not thread-safe
 > 
 > And still:
 > 
 > - it does not handle magiclinks (your PR 30664)
 
 they are newer than realpath.
 
 > I am looking for something like solaris' resolvepath(2) which can be
 > used to implement the rest of realpath(3) in userland.
 > 
 > christos
 
 it isn't necessary to solve these PRs, right?
 
 YAMAMOTO Takashi