[Pkg-net-snmp-commits] r213 - branches/net-snmp54/debian/patches

jochen at alioth.debian.org jochen at alioth.debian.org
Sun Dec 23 14:57:41 UTC 2007


Author: jochen
Date: 2007-12-23 14:57:41 +0000 (Sun, 23 Dec 2007)
New Revision: 213

Added:
   branches/net-snmp54/debian/patches/43_snmp_logging.README
   branches/net-snmp54/debian/patches/43_snmp_logging.patch
Log:
Add upstream patch 1806336: fix -LS option parsing


Added: branches/net-snmp54/debian/patches/43_snmp_logging.README
===================================================================
--- branches/net-snmp54/debian/patches/43_snmp_logging.README	                        (rev 0)
+++ branches/net-snmp54/debian/patches/43_snmp_logging.README	2007-12-23 14:57:41 UTC (rev 213)
@@ -0,0 +1 @@
+Upstream Changeset 16721: snmplib: PATCH: 1806336: fix -LS option parsing

Added: branches/net-snmp54/debian/patches/43_snmp_logging.patch
===================================================================
--- branches/net-snmp54/debian/patches/43_snmp_logging.patch	                        (rev 0)
+++ branches/net-snmp54/debian/patches/43_snmp_logging.patch	2007-12-23 14:57:41 UTC (rev 213)
@@ -0,0 +1,21 @@
+--- net-snmp-5.4.1.orig/snmplib/snmp_logging.c	2006/12/04 17:54:15	15632
++++ net-snmp-5.4.1/snmplib/snmp_logging.c	2007/10/14 19:07:24	16721
+@@ -179,6 +179,9 @@
+ {
+     int pri_low = LOG_DEBUG;
+ 
++    if (optarg == NULL)
++        return -1;
++
+     switch (*optarg) {
+         case '0': 
+         case '!': 
+@@ -384,7 +387,7 @@
+     case 'S':
+         priority = decode_priority( optarg, &pri_max );
+         if (priority == -1 || !argv)  return -1;
+-        optarg = argv[++optind];
++        optarg++;
+         /* Fallthrough */
+     case 's':
+         if (inc_optind)




More information about the Pkg-net-snmp-commits mailing list