Resolves: RHEL-110514 - fix inverted use of -n in snmptrapd_log.c

Signed-off-by: Josef Ridky <jridky@redhat.com>
This commit is contained in:
Josef Ridky 2025-09-03 15:20:01 +02:00
parent 9f86839264
commit 80704827ca
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -urNp a/apps/snmptrapd_log.c b/apps/snmptrapd_log.c
--- a/apps/snmptrapd_log.c 2025-09-03 15:15:12.510914175 +0200
+++ b/apps/snmptrapd_log.c 2025-09-03 15:15:40.804731480 +0200
@@ -590,7 +590,7 @@ realloc_handle_time_fmt(u_char ** buf, s
static
void convert_agent_addr(struct in_addr agent_addr, char *name, size_t size)
{
- const int numeric = !netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID,
+ const int numeric = netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_APP_NUMERIC_IP);
struct sockaddr_in sin;

View File

@ -54,6 +54,7 @@ Patch24: net-snmp-5.9.4-test-fix.patch
Patch25: net-snmp-5.9.4-kernel-6.7.patch
Patch26: net-snmp-5.9.4-remove-mail-sender.patch
Patch27: net-snmp-5.9.4-tls.patch
Patch28: net-snmp-5.9.4-revert-n-snmptrapd-log.patch
# Modern RPM API means at least EL6
Patch101: net-snmp-5.8-modern-rpm-api.patch
@ -247,6 +248,7 @@ cp %{SOURCE10} .
%patch 25 -p1 -b .kernel-fix
%patch 26 -p1 -b .remove-mail-sender
%patch 27 -p1 -b .tls
%patch 28 -p1 -b .revert-n-snmptrapd-log
%patch 101 -p1 -b .modern-rpm-api
%patch 102 -p1
@ -519,6 +521,7 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
%changelog
* Wed Sep 03 2025 Josef Ridky <jridky@redhat.com> - 1:5.9.4-16
- Enable PQC in net-snmp (RHEL-93087)
- Fix inverted use of -n in snmptrapd_log.c (RHEL-110514)
* Fri Mar 21 2025 Josef Ridky <jridky@redhat.com> - 1:5.9.4-15
- Resolves: RHEL-81121