Blame SOURCES/net-snmp-5.8-expand-SNMPCONFPATH.patch

17a0ab
diff -ruNp a/snmplib/read_config.c b/snmplib/read_config.c
17a0ab
--- a/snmplib/read_config.c	2020-06-10 09:51:57.184786510 +0200
17a0ab
+++ b/snmplib/read_config.c	2020-06-10 09:53:13.257507112 +0200
17a0ab
@@ -1642,7 +1642,7 @@ snmp_save_persistent(const char *type)
17a0ab
      * save a warning header to the top of the new file 
17a0ab
      */
17a0ab
     snprintf(fileold, sizeof(fileold),
17a0ab
-            "%s%s# Please save normal configuration tokens for %s in SNMPCONFPATH/%s.conf.\n# Only \"createUser\" tokens should be placed here by %s administrators.\n%s",
17a0ab
+            "%s%s# Please save normal configuration tokens for %s in /etc/snmp/%s.conf.\n# Only \"createUser\" tokens should be placed here by %s administrators.\n%s",
17a0ab
             "#\n# net-snmp (or ucd-snmp) persistent data file.\n#\n############################################################################\n# STOP STOP STOP STOP STOP STOP STOP STOP STOP \n",
17a0ab
             "#\n#          **** DO NOT EDIT THIS FILE ****\n#\n# STOP STOP STOP STOP STOP STOP STOP STOP STOP \n############################################################################\n#\n# DO NOT STORE CONFIGURATION ENTRIES HERE.\n",
17a0ab
             type, type, type,