summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Friedrich <jochen@scram.de>2006-11-01 16:00:30 +0000
committerJochen Friedrich <jochen@scram.de>2006-11-01 16:00:30 +0000
commitf3d6a93ca64a891dc3ed3fb99e96af63d45aa6a8 (patch)
tree820c056bca491bee01b6b78ae05a0d2533b57c0e
parent3d789d5aab85f0d48f67ae05b91884ecbe1be0f0 (diff)
downloadpkg-net-snmp-f3d6a93ca64a891dc3ed3fb99e96af63d45aa6a8.tar.gz
Add patch to revert upstream change causing a crash in snmpd.v5.2.3-2
git-svn-id: svn://svn.debian.org/pkg-net-snmp/branches/net-snmp52@78 db575a87-f10d-0410-9662-f1d5ac62e4ba
-rw-r--r--debian/changelog10
-rw-r--r--debian/libsnmp-base.postinst11
-rw-r--r--debian/patches/28_revert_iftable.README1
-rwxr-xr-xdebian/patches/28_revert_iftable.patch21
4 files changed, 43 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index a4a87fb..ff69d8c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+net-snmp (5.2.3-2) unstable; urgency=high
+
+ * Revert 1.13.2.2 of ifTable_data_access as this causes a crash on
+ disappearing interfaces (Closes: #387174, #388190)
+ * Create .index file on libsnmp-base postinstall to prevent write
+ access on /usr filesystem during runtime (Closes: #389434)
+ * Urgency high due to RC bug fixes.
+
+ -- Jochen Friedrich <jochen@scram.de> Wed, 01 Nov 2006 16:48:11 +0200
+
net-snmp (5.2.3-1) unstable; urgency=low
* New upstream version in 5.2.X branch (bugfix release)
diff --git a/debian/libsnmp-base.postinst b/debian/libsnmp-base.postinst
new file mode 100644
index 0000000..0557aa5
--- /dev/null
+++ b/debian/libsnmp-base.postinst
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+set -e
+
+rm -f /usr/share/snmp/mibs/.index
+cd /usr/share/snmp/mibs
+for i in `ls -U`; do egrep "DEFINITIONS[ ]*::=[ ]*BEGIN" $i | ( read a b; if [ -n $a ]; then echo $a $i; fi); done > .index
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/patches/28_revert_iftable.README b/debian/patches/28_revert_iftable.README
new file mode 100644
index 0000000..5a79c37
--- /dev/null
+++ b/debian/patches/28_revert_iftable.README
@@ -0,0 +1 @@
+Revert revision 1.13.2.2 as this causes a crash if ifentry == NULL.
diff --git a/debian/patches/28_revert_iftable.patch b/debian/patches/28_revert_iftable.patch
new file mode 100755
index 0000000..e6408ae
--- /dev/null
+++ b/debian/patches/28_revert_iftable.patch
@@ -0,0 +1,21 @@
+--- net-snmp-5.2.3/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2006/01/09 17:28:46 1.13.2.2
++++ net-snmp-5.2.3/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2005/12/06 17:44:11 1.13.2.1
+@@ -2,7 +2,7 @@
+ * Note: this file originally auto-generated by mib2c using
+ * version : 1.12 $ of : mfd-data-access.m2c,v $
+ *
+- * $Id: ifTable_data_access.c,v 1.13.2.2 2006/01/09 17:28:46 rstory Exp $
++ * $Id: ifTable_data_access.c,v 1.13.2.1 2005/12/06 17:44:11 rstory Exp $
+ */
+ /*
+ * standard Net-SNMP includes
+@@ -164,8 +164,7 @@
+ DEBUGMSGTL(("ifTable:access", "updating missing entry\n"));
+ rowreq_ctx->known_missing = 1;
+ rowreq_ctx->data.ifAdminStatus = IFADMINSTATUS_DOWN;
+- if ((!(ifentry->ns_flags & NETSNMP_INTERFACE_FLAGS_HAS_LASTCHANGE))
+- && (rowreq_ctx->data.ifOperStatus != IFOPERSTATUS_DOWN))
++ if (rowreq_ctx->data.ifOperStatus != IFOPERSTATUS_DOWN)
+ oper_changed = 1;
+ rowreq_ctx->data.ifOperStatus = IFOPERSTATUS_DOWN;
+ }