This patch fixes net-snmp Bugs item #808920, opened on
9/18/03. See
https://sourceforge.net/tracker/index.php?func=detail&aid=808920&group_id=12694&atid=112694
for details.
Synopsis: hrSWRunName discrepency between snmpwalk and
ps command.
Description: If I do an snmpwalk on this I get a name
like devfsadm, but if I do an ps -ef, I get a name of
devfsadmd.
bug_808920.patch is the patch file.
Files changed in the net-snmp V5-0-Patches branch
(net-snmp 5.0.9) are the following:
net-snmp/agent/mibgroup/host/hr_swrun.c
The problem was that hrSWRunName was dropping letters.
The fix is to check for NULL before doing the strlcpy.
This patch was tested on Solaris 10, 64-bit sparc and
32-bit intel.
patch for hrSWRunName discrepancy
Logged In: YES
user_id=76242
Applied. Could you read the CodingStyle file though? We try to
follow that roughly when possible. Things like if (something)
do_it; all on one line doesn't meet the long-ago agreeded upon
style (a newline after the if () is required).
The CodingStyle file contains a indent cmd line to run if you like.