summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/findutils/files/findutils-env-size.patch')
-rw-r--r--sys-apps/findutils/files/findutils-env-size.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-apps/findutils/files/findutils-env-size.patch b/sys-apps/findutils/files/findutils-env-size.patch
new file mode 100644
index 000000000000..7a1d69bc53f8
--- /dev/null
+++ b/sys-apps/findutils/files/findutils-env-size.patch
@@ -0,0 +1,15 @@
+diff -urN findutils-4.1.20.orig/xargs/xargs.c findutils-4.1.20/xargs/xargs.c
+--- findutils-4.1.20.orig/xargs/xargs.c 2003-10-23 11:36:08.000000000 +0200
++++ findutils-4.1.20/xargs/xargs.c 2003-10-23 11:38:04.000000000 +0200
+@@ -300,8 +300,9 @@
+ have it at 1 meg). Things will work fine with a large ARG_MAX but it
+ will probably hurt the system more than it needs to; an array of this
+ size is allocated. */
+- if (arg_max > 20 * 1024)
+- arg_max = 20 * 1024;
++/* Make this 50 k as ebuild.sh is too big */
++ if (arg_max > 50 * 1024)
++ arg_max = 50 * 1024;
+
+ /* Take the size of the environment into account. */
+ arg_max -= env_size (environ);