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: John Levon
Subject: Re: Changes to the filesystem while find is running - comments?
Date: Mon, 22 Nov 2004 18:23:54 +0000
User-agent: Mutt/1.3.25i

On Mon, Nov 22, 2004 at 10:05:04AM -0800, Martin Buchholz wrote:

> The guarantee `find' makes that symlinks are not followed is
> an important one, for the sanity of users, especially sysadmins.

With -exec, it's not very useful since any -exec action necessarily
is passed the full path, leaving that script open to the race again.

As James pointed out before, something like FreeBSD's -execdir option is
really necessary (fchdir() into the directory before -exec).

regards
john




reply via email to

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