Blame SOURCES/net-snmp-5.9-dir-fix.patch

962144
diff --git a/net-snmp-create-v3-user.in b/net-snmp-create-v3-user.in
962144
index b0c71d9..ac3c60f 100644
962144
--- a/net-snmp-create-v3-user.in
962144
+++ b/net-snmp-create-v3-user.in
962144
@@ -14,6 +14,10 @@ Xalgorithm="DES"
962144
 token=rwuser
962144
 
962144
 while test "x$done" = "x" -a "x$1" != "x" -a "x$usage" != "xyes"; do
962144
+case "$1" in
962144
+    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
962144
+    *) optarg= ;;
962144
+esac
962144
 
962144
 unset shifted
962144
 case $1 in
962144
@@ -136,7 +140,7 @@ fi
962144
 echo "$line" >> "$outfile"
962144
 # Avoid that configure complains that this script ignores @datarootdir@
962144
 echo "@datarootdir@" >/dev/null
962144
-outfile="@datadir@/snmp/snmpd.conf"
962144
+outfile="/etc/snmp/snmpd.conf"
962144
 line="$token $user"
962144
 echo "adding the following line to $outfile:"
962144
 echo "   $line"