bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes to the filesystem while find is running - comments?


From: James Youngman
Subject: Re: Changes to the filesystem while find is running - comments?
Date: Tue, 23 Nov 2004 21:17:52 +0000
User-agent: Mutt/1.3.28i

On Tue, Nov 23, 2004 at 09:17:02AM +0000, James Youngman wrote:

> The only problem that occurs to me is that we did not recheck "foo" to
> see if it still matches the predictes specified on the find command
> line (think about commands like 
>       find /z -user fred -o -name baz -print

Sorry, that should have been :
        find /z -user fred -prune -o -name baz -print


> ... here, if the original "foo" was owned by root but the "new" foo is
> owned by fred, our retrying technique has ensured that we have
> wandered into a place which we are not supposed to.  It's possible
> that we could simply reissue process_path() to retry instead of
> directly trying the chdir("foo") again.  I can't remember offhand if
> that is likely to be a viable strategy.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]