From b89af5ed5c95ebe0466830d90eedd430593a3584 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 20 Sep 2017 13:53:23 -0700 Subject: Fix xargs to obey POSIX's ARG_MAX restrictions. This avoids "xargs: exec echo: Argument list too long" errors in practice. find(1) needs to be fixed too, but that's a bit more complicated and a working xargs provides a workaround. Bug: http://b/65818597 Test: find /proc | strace -f -e execve ./toybox xargs echo > /dev/null --- lib/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index a9a92fd9..889430bd 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -241,6 +241,7 @@ int regexec0(regex_t *preg, char *string, long len, int nmatch, char *getusername(uid_t uid); char *getgroupname(gid_t gid); void do_lines(int fd, void (*call)(char **pline, long len)); +long environ_bytes(); #define HR_SPACE 1 // Space between number and units #define HR_B 2 // Use "B" for single byte units -- cgit v1.2.3