a1810f2a01
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/net-snmp#be26e76db31e227dcc75fe872ad69f39629713ad
25 lines
738 B
Diff
25 lines
738 B
Diff
diff --git a/net-snmp-create-v3-user.in b/net-snmp-create-v3-user.in
|
|
index 452c269..afd6fa4 100644
|
|
--- a/net-snmp-create-v3-user.in
|
|
+++ b/net-snmp-create-v3-user.in
|
|
@@ -16,6 +16,10 @@ Xalgorithm="DES"
|
|
token=rwuser
|
|
|
|
while test "x$done" = "x" -a "x$1" != "x" -a "x$usage" != "xyes"; do
|
|
+case "$1" in
|
|
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
+ *) optarg= ;;
|
|
+esac
|
|
|
|
unset shifted
|
|
case $1 in
|
|
@@ -134,7 +138,7 @@ echo $line >> $outfile
|
|
prefix="@prefix@"
|
|
# Avoid that configure complains that this script ignores @datarootdir@
|
|
echo "@datarootdir@" >/dev/null
|
|
-outfile="@datadir@/snmp/snmpd.conf"
|
|
+outfile="/etc/snmp/snmpd.conf"
|
|
line="$token $user"
|
|
echo "adding the following line to $outfile:"
|
|
echo " " $line
|