summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in')
-rw-r--r--net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in b/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in
index 10afdc703070..7dbc8315504d 100644
--- a/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in
+++ b/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in
@@ -1,5 +1,14 @@
---- net-snmp-create-v3-user.in.orig 2022-12-03 13:29:45 UTC
+--- net-snmp-create-v3-user.in.orig 2021-05-25 22:19:35 UTC
+++ net-snmp-create-v3-user.in
+@@ -3,7 +3,7 @@
+ # this shell script is designed to add new SNMPv3 users
+ # to Net-SNMP config file.
+
+-if @PSCMD@ | egrep ' snmpd *$' > /dev/null 2>&1 ; then
++if @PSCMD@ -J 0 | 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
@@ -135,6 +135,7 @@ if test ! -d "$outfile"; then
fi
echo "$line" >> "$outfile"