Realpath & context sensitive symlinks

Daniel Jacobowitz drow@mvista.com
Thu Sep 27 12:03:00 GMT 2001


On Thu, Sep 27, 2001 at 11:57:11AM -0700, Paul Eggert wrote:
> > Date: Thu, 27 Sep 2001 11:40:38 -0700
> > From: Michael Eager <eager@mvista.com>
> > 
> > Anyone got a solution to this?  Or suggestions?
> 
> Realpath could invoke the 'resolvepath' system call, if it is available.
> That would be more reliable than the chdir/getcwd hack that you suggested.
> 
> This assumes that your kernel has 'resolvepath'.  If it doesn't,
> perhaps you could have it added.  It does seem to be a better approach.
> 
> Solaris 8 realpath uses 'resolvepath'.

I can certainly see it being more elegant, but in what way is it more
reliable?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Libc-alpha mailing list