Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2006 14:53:15 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Path transformation
Message-ID:  <20060819125315.GC192@britannica.bec.de>
In-Reply-To: <8e96a0b90608190527p3a2b9b90hf18b4a0f947cffec@mail.gmail.com>
References:  <8e96a0b90608190527p3a2b9b90hf18b4a0f947cffec@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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