rpms/net-snmp/FC-6 net-snmp-5.3.1-snmpassert.patch, NONE, 1.1 net-snmp.spec, 1.99, 1.100

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Jun 26 15:06:10 UTC 2007


Author: jsafrane

Update of /cvs/dist/rpms/net-snmp/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv19462

Modified Files:
	net-snmp.spec 
Added Files:
	net-snmp-5.3.1-snmpassert.patch 
Log Message:
 fix ugly error message when more interfaces share one IP address
Resolves: #209861

net-snmp-5.3.1-snmpassert.patch:
 ifTable_data_access.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

--- NEW FILE net-snmp-5.3.1-snmpassert.patch ---
--- net-snmp-5.3.1/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c.orig	2006-07-07 22:25:12.000000000 +0200
+++ net-snmp-5.3.1/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c	2007-05-28 14:51:22.000000000 +0200
@@ -203,8 +203,11 @@
         DEBUGMSGTL(("ifTable:access", "updating existing entry\n"));
 
 #ifdef USING_IF_MIB_IFXTABLE_IFXTABLE_MODULE
-        netsnmp_assert(strcmp(rowreq_ctx->data.ifName,
-                              ifentry->name) == 0);
+	{ 
+            int rc = strcmp(rowreq_ctx->data.ifName, 
+                            ifentry->name); 
+            netsnmp_assert(rc == 0); 
+        } 
 #endif
         /*
          * if the interface was missing, but came back, clear the


Index: net-snmp.spec
===================================================================
RCS file: /cvs/dist/rpms/net-snmp/FC-6/net-snmp.spec,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- net-snmp.spec	26 Jun 2007 15:02:40 -0000	1.99
+++ net-snmp.spec	26 Jun 2007 15:06:08 -0000	1.100
@@ -49,6 +49,7 @@
 Patch36: net-snmp-5.3.1-udp-endpoint.patch
 Patch37: net-snmp-5.3.1-tcp-scalars.patch
 Patch38: net-snmp-5.3.1-shared-ip.patch
+Patch39: net-snmp-5.3.1-snmpassert.patch
 
 Prereq: /sbin/chkconfig
 Obsoletes: ucd-snmp
@@ -163,6 +164,7 @@
 %patch36 -p1 -b .udp-endpoint
 %patch37 -p0 -b .tcp-scalars
 %patch38 -p1 -b .shared-ip
+%patch39 -p1 -b .snmpassert
 
 # Do this patch with a perl hack...
 perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh




More information about the fedora-cvs-commits mailing list