[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-2941983 ] trapsess in snmpd.conf can cause stderr
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2010-02-19 6:44:06
Message-ID: E1NiMas-0002i7-Lz () sfs-web-10 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #2941983, was opened at 2010-01-29 04:30
Message generated for change (Comment added) made by magfr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2941983&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: agent
Group: None
> Status: Closed
> Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Bill Fenner (fenner)
Assigned to: Nobody/Anonymous (nobody)
Summary: trapsess in snmpd.conf can cause stderr logging to turn on

Initial Comment:
In net-snmp 5.5, but probably in earlier versions too, an snmpd.conf line such as

trapsess -v 3 -u trapdusr -l authPriv -Ci -a SHA -3k \
a3fbc81cbc5ffc7ee449efdb9587b3665a248d0c -x AES -3K \
e3bc7d9db5a1fb382e3a743f743d67e010317a08 1.2.3.4:5678

causes stderr logging to be turned on, even if snmpd was launched with arguments such \
as -Lf /dev/null -LS0-6d

This is because trapsess uses the common snmp_parse_args() handler to parse the \
trapsess line, and if snmp_parse_args() doesn't see an -L option, it calls \
snmp_enable_stderrlog() to turn on stderr logging.

This causes snmpd to fail to close fd's 0, 1 and 2 (even though it's still going into \
the background); this foils a system that waits for EOF from a popen()'d \
"/usr/sbin/snmpd" to learn that snmpd has successfully launched. 

A workaround is to repeat one of the logging options, such as -Lf /dev/null, on each \
trapsess line.

----------------------------------------------------------------------

> Comment By: Magnus Fromreide (magfr)
Date: 2010-02-19 07:44

Message:
As there is a patch now this becomes a duplicate.

----------------------------------------------------------------------

Comment By: Bill Fenner (fenner)
Date: 2010-01-30 23:04

Message:
I posted a patch for this, #2942940.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2941983&group_id=12694

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic