ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: DirectoryScanner and Symlinks
Date Thu, 04 Sep 2008 15:58:48 GMT
Is it not costly (as in very costly) to get the canonical path ?

I would be for the lowest  tech possible here.

Peter


On Thu, Sep 4, 2008 at 4:38 PM, Dominique Devienne <ddevienne@gmail.com> wrote:
> On Thu, Sep 4, 2008 at 7:32 AM, Stefan Bodewig <bodewig@apache.org> wrote:
>> as Issue 45499 shows DirectoryScanner can run into infinite loops by
>> symbolic links that point to parent directories of the scanned
>> directory.
>
> Instead of trying to track traversed directories using a stack or set,
> what about a low-tech max-symlink-hops check (and fileset attribute),
> defaulting to say 5, to break out of the infinite loop? --DD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message