summaryrefslogtreecommitdiff
path: root/packages/busybox/busybox-1.00/xargs-double-size.patch
diff options
context:
space:
mode:
authorMartin Dietze <di@fh-wedel.de>2006-09-20 12:47:57 +0000
committerMartin Dietze <di@fh-wedel.de>2006-09-20 12:47:57 +0000
commit30f2e3e9b0473e458ef747141a9672b6884f415b (patch)
treef7355306adad42b5aba91ee17f21a5c807e6c746 /packages/busybox/busybox-1.00/xargs-double-size.patch
parent670462825c7e161d816200255e1b7468ef189ffe (diff)
busybox: use a larger buffer in xargs for nylon, patch to compile busybox 1.00 for mtx-[12]
Diffstat (limited to 'packages/busybox/busybox-1.00/xargs-double-size.patch')
-rw-r--r--packages/busybox/busybox-1.00/xargs-double-size.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/busybox/busybox-1.00/xargs-double-size.patch b/packages/busybox/busybox-1.00/xargs-double-size.patch
new file mode 100644
index 0000000000..c7dc900cdd
--- /dev/null
+++ b/packages/busybox/busybox-1.00/xargs-double-size.patch
@@ -0,0 +1,13 @@
+--- busybox-1.00/findutils/xargs.c.org 2006-09-19 18:18:17.084592997 +0200
++++ busybox-1.00/findutils/xargs.c 2006-09-19 18:18:09.820275793 +0200
+@@ -466,8 +466,8 @@
+ 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 (orig_arg_max > 20 * 1024)
+- orig_arg_max = 20 * 1024;
++ if (orig_arg_max > 40 * 1024)
++ orig_arg_max = 40 * 1024;
+ n_max_chars = orig_arg_max;
+ }
+ max_chars = xmalloc(n_max_chars);