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

Re: find -delete



In message <79815896-4342-11D8-AD17-000393A6D2F2@physics.uc.edu>
	so spake Andrew Pinski (pinskia):

> Why can you not do "find . -exec rm {} \;" ?

That is not secure, though:

    find . -execdir rm {} \;

should be.  The problem with -exec is that it executes with the
pwd as the root of the find tree and so there is a race if an
attacker can use links to change where the path actually points.

 - todd