Path transformation

Joerg Sonnenberger joerg at britannica.bec.de
Sat Aug 19 12:54:05 UTC 2006


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


More information about the freebsd-hackers mailing list