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

b5ae06
diff -urNp O/snmplib/read_config.c N/snmplib/read_config.c
b5ae06
--- O/snmplib/read_config.c	2019-03-19 09:24:32.154933465 +0100
b5ae06
+++ N/snmplib/read_config.c	2019-03-19 09:25:26.651756802 +0100
b5ae06
@@ -1633,7 +1633,7 @@ snmp_save_persistent(const char *type)
b5ae06
      * save a warning header to the top of the new file 
b5ae06
      */
b5ae06
     snprintf(fileold, sizeof(fileold),
b5ae06
-            "%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",
b5ae06
+            "%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",
b5ae06
             "#\n# net-snmp (or ucd-snmp) persistent data file.\n#\n############################################################################\n# STOP STOP STOP STOP STOP STOP STOP STOP STOP \n",
b5ae06
             "#\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",
b5ae06
             type, type, type,