[Libreoffice] [PATCH] Reducing chmod spawning by replacing exec by xargs

Christian Lohmaier lohmaier+libreoffice at googlemail.com
Wed Jan 12 04:34:42 PST 2011


Hi *,

On Sat, Jan 8, 2011 at 2:06 AM, Julien Nabet <serval2412 at yahoo.fr> wrote:
>
> I used xargs instead of -exec to reduce chmod spawning.
> Hope there's no mistake in it.

I don't see the point in using -i - since that in turn causes one
process per file, so you don't really gain anything, do you?

Furthermore -i is not supported on mac, and in my linux-xargs manpage
-i is flagged as being deprecated.
(-I would work on both), but again: Using -i / -I and thus the implied
-L 1 nullifies the benefit, doesn't it?

find $packagename -type d -print0 | xargs -0 chmod 775

should do the trick

ciao
Christian


More information about the LibreOffice mailing list