fix crash when multiple exec statements have the same name Resolves:
#243536
This commit is contained in:
parent
8b2dfcc94b
commit
c2a658425f
12
net-snmp-5.4-exec-crash.patch
Normal file
12
net-snmp-5.4-exec-crash.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- net-snmp-5.4/agent/mibgroup/agent/extend.c.orig 2006-10-18 21:07:35.000000000 +0200
|
||||||
|
+++ net-snmp-5.4/agent/mibgroup/agent/extend.c 2007-06-27 14:30:08.000000000 +0200
|
||||||
|
@@ -448,6 +448,9 @@
|
||||||
|
extension->command = strdup( exec_command );
|
||||||
|
if (cptr)
|
||||||
|
extension->args = strdup( cptr );
|
||||||
|
+ } else {
|
||||||
|
+ snmp_log(LOG_ERR, "Duplicate MIBOID '%s' detected in exec statement, only the first one will be used.\n", exec_name);
|
||||||
|
+ return;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef USING_UCD_SNMP_EXTENSIBLE_MODULE
|
@ -253,7 +253,7 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
|
|||||||
#
|
#
|
||||||
# exec NAME PROGRAM [ARGS ...]
|
# exec NAME PROGRAM [ARGS ...]
|
||||||
#
|
#
|
||||||
# NAME: A generic name.
|
# NAME: A generic name. The name must be unique for each exec statement.
|
||||||
# PROGRAM: The program to run. Include the path!
|
# PROGRAM: The program to run. Include the path!
|
||||||
# ARGS: optional arguments to be passed to the program
|
# ARGS: optional arguments to be passed to the program
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Summary: A collection of SNMP protocol tools and libraries
|
Summary: A collection of SNMP protocol tools and libraries
|
||||||
Name: net-snmp
|
Name: net-snmp
|
||||||
Version: %{major_ver}
|
Version: %{major_ver}
|
||||||
Release: 13%{?dist}
|
Release: 14%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
License: BSDish
|
License: BSDish
|
||||||
@ -43,6 +43,7 @@ Patch17: net-snmp-5.4-hostname.patch
|
|||||||
Patch18: net-snmp-5.4-udp-endpoint.patch
|
Patch18: net-snmp-5.4-udp-endpoint.patch
|
||||||
Patch19: net-snmp-5.3.1-shared-ip.patch
|
Patch19: net-snmp-5.3.1-shared-ip.patch
|
||||||
Patch20: net-snmp-5.3.1-mib-option.patch
|
Patch20: net-snmp-5.3.1-mib-option.patch
|
||||||
|
Patch21: net-snmp-5.4-exec-crash.patch
|
||||||
|
|
||||||
Requires(pre): /sbin/chkconfig
|
Requires(pre): /sbin/chkconfig
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): /sbin/chkconfig
|
||||||
@ -164,6 +165,7 @@ and applications.
|
|||||||
%patch18 -p1 -b .udp-endpoint
|
%patch18 -p1 -b .udp-endpoint
|
||||||
%patch19 -p1 -b .shared-ip
|
%patch19 -p1 -b .shared-ip
|
||||||
%patch20 -p1 -b .mib-option
|
%patch20 -p1 -b .mib-option
|
||||||
|
%patch21 -p1 -b .exec-crash
|
||||||
|
|
||||||
# Do this patch with a perl hack...
|
# Do this patch with a perl hack...
|
||||||
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
|
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
|
||||||
@ -370,11 +372,13 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu May 3 2007 Jan Safranek <jsafrane@redhat.com>
|
* Thu May 3 2007 Jan Safranek <jsafrane@redhat.com> 5.4-14
|
||||||
- fix snmptrapd hostname logging (#238587)
|
- fix snmptrapd hostname logging (#238587)
|
||||||
- fix udpEndpointProcess remote IP address (#236551)
|
- fix udpEndpointProcess remote IP address (#236551)
|
||||||
- fix -M option of net-snmp-utils (#244784)
|
- fix -M option of net-snmp-utils (#244784)
|
||||||
- default snmptrapd.conf added (#243536)
|
- default snmptrapd.conf added (#243536)
|
||||||
|
- fix crash when multiple exec statements have the same name
|
||||||
|
(#243536)
|
||||||
|
|
||||||
* Mon Mar 12 2007 Radek Vokál <rvokal@redhat.com> - 1:5.4-13
|
* Mon Mar 12 2007 Radek Vokál <rvokal@redhat.com> - 1:5.4-13
|
||||||
- fix overly verbose log message (#221911)
|
- fix overly verbose log message (#221911)
|
||||||
|
Loading…
Reference in New Issue
Block a user