Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2006 13:59:17 +0100
From:      "mal content" <artifact.one@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Path transformation
Message-ID:  <8e96a0b90608190559x1b573455wf84fe039afc7fb3e@mail.gmail.com>
In-Reply-To: <20060819125315.GC192@britannica.bec.de>
References:  <8e96a0b90608190527p3a2b9b90hf18b4a0f947cffec@mail.gmail.com> <20060819125315.GC192@britannica.bec.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19/08/06, Joerg Sonnenberger <joerg@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8e96a0b90608190559x1b573455wf84fe039afc7fb3e>