ports/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in
Ryan Steinmetz 647eff0a34
net-mgmt/net-snmp: Update to 5.9.4
PR:		277436
Submitted by:	Ivan Rozhuk <rozhuk.im@gmail.com>
2024-03-04 11:10:35 -05:00

12 lines
455 B
Plaintext

--- net-snmp-create-v3-user.in.orig 2023-08-15 20:32:01 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 daemon is already running."
echo "You must stop them in order to use this command."
exit 1