Package: findutils

mailman was using the following snippet of code:

 find /var/lib/mailman/ -type d -print0 | xargs -r -0 chmod g+s

but this led, for at least one user, to a failure with the error
message:

 xargs: chmod: Argument list too long

(see http://bugs.debian.org/366102). We have worked around this by
using the somewhat slower
 find /var/lib/mailman/ -type d -exec chmod g+s \{\} \;
so it is not blocking to us, but still, I think that xargs should use
safe defaults for -s and -n. In other words, it should "just work"™,
using xargs should automatically protect you against too long argument
lists being used. "Safe" as in ask the kernel what the maximum is and
use that. Or something like that.

The user in question was using etch in may 2006, so presumably the
version of findutils in etch around that time.

-- 
Lionel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to