components/net-snmp-57/patches/054.20479968.net-snmp-config.in.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 04 Apr 2017 17:27:12 -0700
changeset 7830 a19af6ab1a9c
parent 5867 445e2cf1c845
permissions -rw-r--r--
25816799 Remove more excess FOSS from Desktop gate [PSARC 2016/088 - b122 subset] PSARC/2016/088 EOF of more excess FOSS from Desktop consolidation (scrubbing the decks harder)

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-create-v3-user.in	Wed Feb 19 16:36:42 2014
+++ b/net-snmp-create-v3-user.in	Wed Dec 23 22:47:04 2015
@@ -28,7 +28,7 @@
    NSC_SRCDIR="NET-SNMP-SOURCE-DIR"
 fi
 
-if @PSCMD@ | 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