[arch-commits] CVS update of core/base/iputils (iputils-20070202-no-open-max.patch)

Tobias Powalowski tpowa at archlinux.org
Sat Dec 8 17:32:20 UTC 2007


    Date: Saturday, December 8, 2007 @ 12:32:20
  Author: tpowa
    Path: /home/cvs-core/core/base/iputils

   Added: iputils-20070202-no-open-max.patch (1.1)

'upgpkg: added missing patch'


------------------------------------+
 iputils-20070202-no-open-max.patch |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)


Index: core/base/iputils/iputils-20070202-no-open-max.patch
diff -u /dev/null core/base/iputils/iputils-20070202-no-open-max.patch:1.1
--- /dev/null	Sat Dec  8 12:32:20 2007
+++ core/base/iputils/iputils-20070202-no-open-max.patch	Sat Dec  8 12:32:20 2007
@@ -0,0 +1,16 @@
+the OPEN_MAX define has been removed in newer kernel headers so use the
+proper method of getting the value dynamically
+
+http://bugs.gentoo.org/195861
+
+--- a/rdisc.c
++++ b/rdisc.c
+@@ -247,7 +247,7 @@ void do_fork(void)
+ 	if ((pid=fork()) != 0)
+ 		exit(0);
+ 
+-	for (t = 0; t < OPEN_MAX; t++)
++	for (t = 0; t < sysconf(_SC_OPEN_MAX); t++)
+ 		if (t != s)
+ 			close(t);
+ 




More information about the arch-commits mailing list