Package: release.debian.org Tags: wheezy User: release.debian....@packages.debian.org Usertags: pu
Hi, I'd like to upload net-snmp/5.4.3~dfsg-2.8+deb7u1 to stable-proposed-updates to fix Bug#721224, error happens when Executables/scripts entries is over 50 in snmpd.conf. Diff is below. diff -Nru net-snmp-5.4.3~dfsg/debian/changelog net-snmp-5.4.3~dfsg/debian/changelog --- net-snmp-5.4.3~dfsg/debian/changelog 2014-03-18 05:02:49.000000000 +0900 +++ net-snmp-5.4.3~dfsg/debian/changelog 2014-05-04 09:04:47.000000000 +0900 @@ -1,3 +1,15 @@ +net-snmp (5.4.3~dfsg-2.8+deb7u1) stable-proposed-updates; urgency=medium + + * Team upload. + * debian/patches + - add bug#721224_entries_over50.patch to fix "snmpd: produces error if the + Executables/scripts entries in snmpd.conf is over 50" taken patch from + Red Hat Bugzilla. + Thanks to "Christian Ruppert" <c.rupp...@babiel.com> for the report + (Closes: #721224) + + -- Hideki Yamane <henr...@debian.org> Sun, 04 May 2014 08:59:03 +0900 + net-snmp (5.4.3~dfsg-2.8) stable; urgency=medium * Non-maintainer upload. diff -Nru net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch --- net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch 1970-01-01 09:00:00.000000000 +0900 +++ net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch 2014-05-04 09:04:47.000000000 +0900 @@ -0,0 +1,29 @@ +Index: net-snmp/agent/mibgroup/agent/extend.c +=================================================================== +--- net-snmp.orig/agent/mibgroup/agent/extend.c 2014-05-04 07:53:51.731755326 +0900 ++++ net-snmp/agent/mibgroup/agent/extend.c 2014-05-04 07:54:28.075895631 +0900 +@@ -476,10 +476,21 @@ + + } else if (!strcmp( token, "sh" ) || + !strcmp( token, "exec" )) { +- if ( num_compatability_entries == max_compatability_entries ) ++ if ( num_compatability_entries == max_compatability_entries ) { + /* XXX - should really use dynamic allocation */ +- config_perror("No further UCD-compatible entries" ); +- else ++ netsnmp_old_extend *new_compatability_entries; ++ new_compatability_entries = realloc(compatability_entries, ++ max_compatability_entries*2*sizeof(netsnmp_old_extend)); ++ if (!new_compatability_entries) ++ config_perror("No further UCD-compatible entries" ); ++ else { ++ memset(new_compatability_entries+num_compatability_entries, 0, ++ sizeof(netsnmp_old_extend)*max_compatability_entries); ++ max_compatability_entries *= 2; ++ compatability_entries = new_compatability_entries; ++ } ++ } ++ if (num_compatability_entries != max_compatability_entries) + compatability_entries[ + num_compatability_entries++ ].exec_entry = extension; + } diff -Nru net-snmp-5.4.3~dfsg/debian/patches/series net-snmp-5.4.3~dfsg/debian/patches/series --- net-snmp-5.4.3~dfsg/debian/patches/series 2014-03-18 05:33:32.000000000 +0900 +++ net-snmp-5.4.3~dfsg/debian/patches/series 2014-05-04 09:04:47.000000000 +0900 @@ -1,3 +1,4 @@ +bug#721224_entries_over50.patch 02_statistics.patch 03_makefiles.patch 05_searchdirs.patch -- To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140504104416.6cf7206ab718248777c42...@debian.or.jp