On Sat, Apr 14, 2007 at 07:43:18AM +0200, Baurzhan Ismagulov wrote:
> Hello Justin,
> 
> On Fri, Apr 13, 2007 at 07:50:17PM -0400, Justin Pryzby wrote:
> > sudo: doesn't accept more than 16347 arguments
> > http://bugs.debian.org/413425
I think I know why.

sudo sets SUDO_COMMAND to the command it's executing.  Naturally this
is a terrible idea when you're using xargs.

I don't think any code change is necessary; it's probably best to use
sudo xargs instead of xargs sudo.  This also has the advantage that
massive argument lists cause only a single logfile entry, and it
doesn't contain the argument list (though this could be desirably for
a short argument list).

Justin


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

Reply via email to