From a71cd23e5791e60a444fb7b653f137de27a408a5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 29 2023 07:39:05 +0000 Subject: import net-snmp-5.7.2-49.el7_9.3 --- diff --git a/SOURCES/net-snmp-5.7.2-sendmsg-error-code.patch b/SOURCES/net-snmp-5.7.2-sendmsg-error-code.patch new file mode 100644 index 0000000..91f6541 --- /dev/null +++ b/SOURCES/net-snmp-5.7.2-sendmsg-error-code.patch @@ -0,0 +1,12 @@ +diff -urNp a/snmplib/transports/snmpUDPBaseDomain.c b/snmplib/transports/snmpUDPBaseDomain.c +--- a/snmplib/transports/snmpUDPBaseDomain.c 2023-08-10 09:44:40.306822948 +0200 ++++ b/snmplib/transports/snmpUDPBaseDomain.c 2023-08-10 09:46:37.161714093 +0200 +@@ -212,7 +212,7 @@ int netsnmp_udpbase_sendto(int fd, struc + } + + rc = sendmsg(fd, &m, NETSNMP_NOSIGNAL|NETSNMP_DONTWAIT); +- if (rc >= 0 || errno != EINVAL) ++ if (rc >= 0 || (errno != EINVAL && errno != ENETUNREACH)) + return rc; + + /* diff --git a/SPECS/net-snmp.spec b/SPECS/net-snmp.spec index 7dd664f..cc64602 100644 --- a/SPECS/net-snmp.spec +++ b/SPECS/net-snmp.spec @@ -11,7 +11,7 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.7.2 -Release: 49%{?dist}.2 +Release: 49%{?dist}.3 Epoch: 1 License: BSD @@ -127,6 +127,7 @@ Patch91: net-snmp-5.7.2-flood-messages.patch Patch92: net-snmp-5.7.2-proc-whitespace.patch Patch93: net-snmp-5.7.2-CVE-2020-15862.patch Patch94: net-snmp-5.7.2-bulk.patch +Patch95: net-snmp-5.7.2-sendmsg-error-code.patch Requires(post): chkconfig Requires(preun): chkconfig @@ -375,6 +376,7 @@ The net-snmp-sysvinit package provides SysV init scripts for Net-SNMP daemons. %patch92 -p1 -b .proc-whitespace %patch93 -p1 -b .CVE-2020-15862 %patch94 -p1 -b .bulk +%patch95 -p1 -b .sendmsg-error-code %ifarch sparc64 s390 s390x # disable failing test - see https://bugzilla.redhat.com/show_bug.cgi?id=680697 @@ -670,6 +672,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_initrddir}/snmptrapd %changelog +* Thu Aug 10 2023 Josef Ridky - 1:5.7.2-49.3 +- fix sendmsg error code for new kernel (#2229858) + * Mon Mar 07 2022 Josef Ridky - 1:5.7.2-49.2 - fix send response: Too long error (#2008696)