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

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