Hi, On Wed, Jan 05, 2005 at 09:55:15PM +0000, James Youngman wrote: > On Wed, Jan 05, 2005 at 09:17:40PM +0100, Giuliano Colla wrote: [...] > The -execdir action was introduced by *BSD as a secure alternative to > the insecure-by-design -exec action that Unixes have had for years > (and which POSIX standardises). GNU findutils does not yet support > -execdir, though support is planned soon. There is a patch on > http://savannah.gnu.org/ which implements -execdir, but it's slightly > out-of-date and probably won't apply cleanly. The logical way to > implement it is just after implementing support for the '+' terminator > for -exec (which, again, is mandated by POSIX).
The patch is https://savannah.gnu.org/patch/?func=detailitem&item_id=3504 I post updated revisions from time to time, since I maintain findutils development releases for ALT Linux Sisyphus. GNU findutils already supports -delete action (since 4.2.3 release) which is most important case of -execdir. > That means my current plan is : > > 1. Improve the test suite, paying particular attention to xargs > so that I will know if I break it later > 2. Refactor the find code so that it makes use of the xargs functionality > for building command lines > 3. Use this to support '-exec {} +'. > 4. Implement '-execdir {} ;' > 5. Implement '-execdir {} +' I think that you can add '-execdir {} ;' support right now for zero cost. However, '-execdir {} +' is much more useful option. -- ldv
pgpLXKeewjObJ.pgp
Description: PGP signature
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
