Subject: Re: lib/30664: realpath and magic symlinks
To: Chuck Silvers <chuq@chuq.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 07/08/2005 10:35:29
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