>>>>> On Wed, 30 Nov 2005 10:39:10 +0000, Dave Shield <[EMAIL PROTECTED]> said:

Dave> According to your description above, the config file
Dave> setting ("public") should take precedence over the
Dave> short command line argument "-c private".
Dave> But it doesn't, and it's right not to.

That's unfortunately one of the exceptions because there is specific
logic there being used.

The issue stems from how things work:

 - we parse command line options *before* reading configuration, since
   configuration could be affected.
 - -- based command line options are "saved" till (*)
 - config files are parsed
 - options saved from (*) are "replayed" as configuration file tokens

Sometimes the precedence works like you'd expect (-c) and sometimes it
doesn't (oid output formatting).

The sad thing is that this all stems from a backwards-compatibility
decision that I no longer even remember from back in the 4->5
transition phase.  Part of it is that the default store stuff is used
in a lot of places, and it has no knowledge of what should trump what
because from it's perspective "something" is telling it to change the
value.  This is what will need a lot of reworking to make it behave
properly.  It's definitely 5.4 material, if someone has the energy.

Dave> But it would be better to fix things so that the command
Dave> line arguments take precedence, just as everyone naturally
Dave> expects.

Agreed.  It's the details that make it tricky.

If you want someone to blame, feel free to blame me ;-)

-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to