File net-snmp-5.7.3-fix-create-v3-user-outfile.patch of Package net-snmp.23230
diff -Nurp net-snmp-5.7.3.orig/net-snmp-create-v3-user.in net-snmp-5.7.3/net-snmp-create-v3-user.in
--- net-snmp-5.7.3.orig/net-snmp-create-v3-user.in 2014-12-08 21:23:22.000000000 +0100
+++ net-snmp-5.7.3/net-snmp-create-v3-user.in 2021-04-14 11:33:41.920708657 +0200
@@ -158,7 +158,7 @@ if test ! -d $outfile ; then
touch $outfile
fi
echo $line >> $outfile
-outfile="@datadir@/snmp/snmpd.conf"
+outfile="/etc/snmp/snmpd.conf"
line="$token $user"
echo "adding the following line to $outfile:"
echo " " $line