22147531 Fix for Bug 20479968 introduces error in net-snmp-config
authorVishwas Shekarappa Gudiyavar <vishwas.shekarappa.gudiyavar@oracle.com>
Sun, 20 Dec 2015 20:44:41 -0800
changeset 5218 0fb1985a7cd5
parent 5217 dcee004b2ece
child 5219 006be2060ead
22147531 Fix for Bug 20479968 introduces error in net-snmp-config
components/net-snmp/patches/061.22147531.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/061.22147531.patch	Sun Dec 20 20:44:41 2015 -0800
@@ -0,0 +1,18 @@
+Patch developed inhouse and fixes a Solaris specific issue related to user creation
+in snmpv3. The patch has been submitted to the community but has
+not been accepted yet.
+
+The details can be found in the following location
+https://sourceforge.net/p/net-snmp/bugs/2689/
+
+--- net-snmp-5.4.1/net-snmp-config.in	2015-11-04 02:33:59.029951910 -0800
++++ copy_net-snmp-5.4.1/net-snmp-config.in	2015-11-04 02:36:34.650208866 -0800
+@@ -191,7 +191,7 @@
+       ;;
+     ####################################################
+     --create-snmpv3-user)
+-      if " $PSPROG -z `zonename` | egrep ' snmpd *$' " > /dev/null 2>&1 ; then
++      if /usr/bin/ps -z `zonename` | egrep ' snmpd *$' > /dev/null 2>&1 ; then
+          echo "Apparently at least one snmpd demon is already running."
+          echo "You must stop them in order to use this command."
+          exit 1