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
> 
> Isn't this still just the environment limit of execve? Other commands
> have the same limit without xargs.

I don't think so:

[EMAIL PROTECTED]:~$ locate usr |wc -l
301961
[EMAIL PROTECTED]:~$ locate usr |xargs echo |wc -l
123
[EMAIL PROTECTED]:~$ locate usr |xargs sudo echo |wc -l
sudo: unable to execute /bin/echo: Argument list too long
0
[EMAIL PROTECTED]:~$ locate usr |xargs -s 32768 sudo echo |wc -l
481

If it had been an execve limit, echo would have also been affected.


> xargs should be able to handle sudo with some -s argument.

Yes, thanks for the tip!


> Should this be considered a request for xargs to work around whatever
> causes it to fail to do what's intended when sudo is involved?

This is not what I intended to achieve. I wanted that sudo worked with
the recent findutils versions OOTB. With -s, we can set the severity of
this bug to wishlist.

I understand that if a program doesn't support an unlimited number of
arguments (so that sizeof int, the kernel, and perhaps the libc are the
only limitation), then setting any defaults is a horse race with other
tools. If upstream says they won't do that, we'd just tag the bug as
wontfix and close it, but I don't think it makes sense to work around
every program in xargs.


With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/


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

Reply via email to