On 8/23/05, Alex Riesen <[EMAIL PROTECTED]> wrote:
> On 8/17/05, Linus Torvalds <[EMAIL PROTECTED]> wrote:
> > NOTE! This does _not_ handle ".." or "." in the _middle_ of a pathspec. If
> > you have people who do
> BTW, could this (below) be useful for something?
Well, a bit of explanation is certainly missing, sorry. The code tries
(on purely text level) the behaviour of chdir(2), including stopping at root,
going back and forth and removing useless (not changing directory)
parts like "/./".
The file in the previous message can be tested with :
gcc -DCHECK_PATHEXPAND patchexpand.c && ./aout
PS: Before anyone asked: the code is mine and free for any use.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html