On Tue, Sep 16, 2014 at 11:44 AM, Maria Teresa Eibe mtega...@gmail.com
wrote:
Hi,
I’ve noticed that there seems to be a bug in the code of system.c,
function netsnmp_os_prematch, if net-snmp is to be run on Solaris. The
problem would be the line:
if ( 0 != uname(utsbuf))
return -1;
as uname would return 1 if success in the case of Solaris
I’ve just checked versions 5.2.1.2 and 5.6.2.1 of net-snmp. It seems to be
affecting both.
POSIX only says non-negative return value on success, so zero and one are
both right. The code should be if ( 0 uname(...)). Could you please
file a bug at http://www.net-snmp.org/bugs/ ?
Thanks,
Bill
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders