Subject: Re: CVS commit: src/usr.bin/find
To: None <firstname.lastname@example.org>
From: David Laight <email@example.com>
Date: 02/11/2007 21:45:28
On Sat, Feb 10, 2007 at 05:13:16PM -0500, James K. Lowden wrote:
> As Mouse said (approximately), it would be interesting to consider the
> problem in terms of what find(1) would have to pass to a filter that could
> do what -delete is meant for. We know how to pass handles between
> processes. Might it be useful to make find(1) do that instead? Various
> handle-accepting filters could do different things with them, unlinking
> being only one possibility.
In this case passing an open file won't help, as it is the directory
entry (ie the name) that has to be removed, not the open file.
I think this means that there is always a race between any stat of the
name and an attempt to unlink it.
David Laight: firstname.lastname@example.org