[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in findutils-4.1.7

From: Gordon Lack
Subject: Bug in findutils-4.1.7
Date: Tue, 02 Apr 2002 14:11:14 +0100

   When compiled on an SGI Irix system the xargs you end up with runs
out of environment space too easily.  The reason is that ARG_MAX gets
set to 5120 by limits.h, even though the sysconf call will return 20480.

   Patch is:

--- xargs.c.orig        Sun May 20 21:39:38 2001
+++ xargs.c     Thu Mar 28 15:34:31 2002
@@ -86,6 +86,13 @@
 /* COMPAT:  SYSV version defaults size (and has a max value of) to 470.
    We try to make it as large as possible. */
+/* SGI Irix might define ARG_MAX as 5120 in limits.h
+ * We don't want that!
+ */
+#if defined(__sgi)
+#undef ARG_MAX
 #if !defined(ARG_MAX) && defined(_SC_ARG_MAX)
 #define ARG_MAX sysconf (_SC_ARG_MAX)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]