Subject: Re: lib/30664: realpath and magic symlinks
To: None <,,>
From: Jason Thorpe <>
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 <>
To: Chuck Silvers <>
Cc: YAMAMOTO Takashi <>,,,
	NetBSD Kernel Technical Discussion List <>
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