b5ae06
978398 - net-snmp does not honor configuration file look-ups as specified in man
b5ae06
b5ae06
commit 9bd0413bfbdcd845413c135bbff8771fa7130809
b5ae06
Author: Jan Safranek <jsafranek@users.sourceforge.net>
b5ae06
Date:   Mon Feb 11 11:57:01 2013 +0100
b5ae06
b5ae06
    Explicitly enumerate configuration files.
b5ae06
    
b5ae06
    The generic conf and local.conf extensions were interpreted as my.snmp.conf and my.other.snmp.local.conf by some customers.
b5ae06
b5ae06
diff -up net-snmp-5.7.2/man/snmp_config.5.defptch net-snmp-5.7.2/man/snmp_config.5.def
b5ae06
--- net-snmp-5.7.2/man/snmp_config.5.defptch	2013-06-26 16:14:33.039284390 +0200
b5ae06
+++ net-snmp-5.7.2/man/snmp_config.5.def	2013-06-26 16:14:49.616233272 +0200
b5ae06
@@ -11,9 +11,10 @@ found and read from.  By default, the ap
b5ae06
 configuration files in the following 4 directories, in order:
b5ae06
 SYSCONFDIR/snmp,
b5ae06
 DATADIR/snmp, /usr/lib(64)/snmp, and $HOME/.snmp.  In each of these
b5ae06
-directories, it looks for files with the extension of both
b5ae06
-.IR conf " and " local.conf
b5ae06
-(reading the second ones last).  In this manner, there are
b5ae06
+directories, it looks for files snmp.conf, snmpd.conf and/or
b5ae06
+snmptrapd.conf, as well as snmp.local.conf, snmpd.local.conf
b5ae06
+and/or snmptrapd.local.conf. *.local.conf are always
b5ae06
+read last. In this manner, there are
b5ae06
 8 default places a configuration file can exist for any given
b5ae06
 configuration file type.
b5ae06
 .PP