[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r10133 - in trunk/subversion: include libsvn_subr tests/clients/cmdline tests/libsvn_subr

From: Klaus Rennecke <kre_at_tigris.org>
Date: 2004-07-04 18:23:36 CEST

Greg Hudson wrote:

> [...]
>
>I am concerned about the case where one runs something like "svn st
>foo/../bar", where foo is a symlink with multiple path elements.
>[...]
>

You might get away with backpathing over symlinks if you URL-encode the
.. segments, like foo/%2E%2E/bar. If I recall correctly, the URL
decoding is done *after* the canonicalisation, at least in some cases
(checkout-cmd). Well, OK, this is probably a bug, but I don't see a way
to fix it safely with the current flow control.

That aside, it's very risky to try backpathing over symlinks. Several
levels may shortcut out there, the bash does it for instance in a very
elaborate way so that even "cd .." most often backtracks to the symlink
source.

/Klaus

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 4 18:25:09 2004

This is an archived mail posted to the Subversion Dev mailing list.