Subject: Re: lib/30664: realpath and magic symlinks
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Jason Thorpe <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 07/08/2005 17:36:01
The following reply was made to PR lib/30664; it has been noted by GNATS.

From: Jason Thorpe <thorpej@shagadelic.org>
To: Chuck Silvers <chuq@chuq.com>
Cc: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>,
	netbsd-bugs@netbsd.org, gnats-bugs@netbsd.org,
	NetBSD Kernel Technical Discussion List <tech-kern@netbsd.org>
Subject: Re: lib/30664: realpath and magic symlinks
Date: Fri, 8 Jul 2005 10:35:29 -0700

 On Jul 8, 2005, at 10:23 AM, Chuck Silvers wrote:
 
 > I think that the real problem is having the path interpretation be  
 > different
 > for symlinks vs. other path lookups done in the kernel.  it would make
 > a lot more sense to have the tranlation done for all pathname lookups
 > or none, and not this awkward halfway thing that "magic symlinks"  
 > provides.
 >
 > then readlink() would be fine as it is.
 
 So, the question is:
 
 Are these magic names interpreted by lookup() before handing them off  
 to VFS_LOOKUP()?  I would guess it would have to be, otherwise it  
 would just be insane.
 
 -- thorpej