rpms/iputils/devel iputils-20070202-open-max.patch, NONE, 1.1 iputils.spec, 1.49, 1.50

Martin Bacovsky (mbacovsk) fedora-extras-commits at redhat.com
Tue Aug 7 10:10:05 UTC 2007


Author: mbacovsk

Update of /cvs/pkgs/rpms/iputils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3003

Modified Files:
	iputils.spec 
Added Files:
	iputils-20070202-open-max.patch 
Log Message:
* Fri Aug  3 2007 Martin Bacovsky <mbacovsk at redhat.com> - 20070202-4
- resolves: #236725: ping does not work for subsecond intervals for ordinary user
- resolves: #243197: RFE: Please sync ifenslave with current kernel
- resolves: #246954: Initscript Review
- resolves: #251124: can't build rdisc - OPEN_MAX undeclared


iputils-20070202-open-max.patch:

--- NEW FILE iputils-20070202-open-max.patch ---
--- iputils-s20070202/rdisc.c.open-max	2007-08-07 11:34:03.000000000 +0200
+++ iputils-s20070202/rdisc.c	2007-08-07 11:41:30.000000000 +0200
@@ -240,14 +240,25 @@
 {
 	int t;
 	pid_t pid;
+	long open_max; 
 	
 	if (trace)
 		return;
 
+	if ((open_max = sysconf(_SC_OPEN_MAX)) == -1) {
+		if (errno == 0) {
+			(void) fprintf(stderr, "OPEN_MAX is not supported\n");
+		} 
+		else {
+			(void) fprintf(stderr, "sysconf() error\n");
+		}
+		exit(1);
+    }
+
 	if ((pid=fork()) != 0)
 		exit(0);
 
-	for (t = 0; t < OPEN_MAX; t++)
+	for (t = 0; t < open_max; t++)
 		if (t != s)
 			close(t);
 


Index: iputils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/iputils/devel/iputils.spec,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- iputils.spec	7 Aug 2007 09:14:36 -0000	1.49
+++ iputils.spec	7 Aug 2007 10:09:32 -0000	1.50
@@ -19,6 +19,7 @@
 Patch22: iputils-ifenslave.patch
 Patch25: iputils-20020927-arping-infiniband.patch
 Patch26: iputils-20070202-idn.patch
+Patch27: iputils-20070202-open-max.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: docbook-utils perl-SGMLSpm
@@ -48,6 +49,7 @@
 %patch22 -p1 -b .addr
 %patch25 -p1 -b .infiniband
 %patch26 -p1 -b .idn
+%patch27 -p1 -b .open-max
 
 %build
 %ifarch s390 s390x
@@ -149,6 +151,7 @@
 - resolves: #236725: ping does not work for subsecond intervals for ordinary user
 - resolves: #243197: RFE: Please sync ifenslave with current kernel
 - resolves: #246954: Initscript Review
+- resolves: #251124: can't build rdisc - OPEN_MAX undeclared
 
 * Fri Apr  6 2007 Martin Bacovsky <mbacovsk at redhat.com> - 20070202-3
 - resolves: #235374: Update of iputils starts rdisc, breaking connectivity 




More information about the fedora-extras-commits mailing list