20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ s11u2-sru
authorSowrabha H G<sowrabha.hg@oracle.com>
Wed, 15 Jul 2015 08:08:35 -0700
branchs11u2-sru
changeset 4650 7a924b284d8d
parent 4640 044ef665199a
child 4656 d2d5305973e8
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ
components/net-snmp/patches/053.20479968.net-snmp-config.in.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/053.20479968.net-snmp-config.in.patch	Wed Jul 15 08:08:35 2015 -0700
@@ -0,0 +1,29 @@
+This patch 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/2607
+
+--- a/net-snmp-config.in	Fri Jun 29 15:18:27 2007
++++ b/net-snmp-config.in	Wed Apr  1 22:08:50 2015
+@@ -191,7 +191,7 @@
+       ;;
+     ####################################################
+     --create-snmpv3-user)
+-      if @PSCMD@ | egrep ' snmpd *$' > /dev/null 2>&1 ; then
++      if " $PSPROG -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
+@@ -656,7 +656,9 @@
+       usage="yes"
+       ;;
+   esac
+-  shift
++  if test "$#" -gt 0 ; then
++    shift
++  fi
+   done
+ fi
+