Subject: Re: lib/30664: realpath and magic symlinks
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 07/08/2005 16:16:04
The following reply was made to PR lib/30664; it has been noted by GNATS.
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: thorpej@shagadelic.org
Cc: netbsd-bugs@netbsd.org, gnats-bugs@netbsd.org,
tech-kern@netbsd.org
Subject: Re: lib/30664: realpath and magic symlinks
Date: Sat, 09 Jul 2005 01:14:34 +0900
> Perhaps readlink(2) should translate the magic symlink? But that
> would break ls(1). Perhaps we could add a readlink2(2) that takes a
> flags argument, allowing us to specify "raw" or "translated".
> readlink(2) would default to "translated", and ls(1) would be changed
> to use "raw".
>
> Thoughts?
i think it's a fine idea.
YAMAMOTO Takashi