[Top][All Lists]

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

[bug #26883] "or" condition and -exec directive

From: Eric Blake
Subject: [bug #26883] "or" condition and -exec directive
Date: Thu, 25 Jun 2009 18:59:06 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080702 Firefox/ Mnenhy/

Follow-up Comment #4, bug #26883 (project findutils):

Using tr and xargs -0 is not secure; in other words, it is the same as if you
had done:

find -iname '*.scala' -o -iname '*.java' | xargs echo

The whole point of 'xargs -0' is that it is only useful if you already had
secure file names passed to xargs in the first place.

You probably want:

find ( -iname '*.scala' -o -iname '*.java' ) -print0 | xargs -0 echo


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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