Path transformation

mal content artifact.one at googlemail.com
Sat Aug 19 12:59:23 UTC 2006


On 19/08/06, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> On Sat, Aug 19, 2006 at 01:27:49PM +0100, mal content wrote:
> > Is there any code in the tree that does general path transformation
> > or 'optimisation'?
> >
> > For example, this path corresponds to the current working directory:
> >
> >  "dir1/dir2/dir3/../../../"
>
> It might or might not. E.g. dir2 could be a symlink.
> Check realpath(3) and maybe the implementation of that as well.
>
> Joerg

Ah, yes, didn't think of that. realpath() seems to be exactly what I'm
looking for though, thanks!

MC


More information about the freebsd-hackers mailing list