Thanks for replay!
Any suggestions about workaround for snmp?
Thanks in advance.2009/2/13 Dave Shield <d.t.shi...@liverpool.ac.uk>
> 2009/2/13 Alexander Bubnov <alexander.bub...@gmail.com>:
> > if ((dir2 = opendir(tmpstr))) {
> > <--- OPENDIR CAN OPEN A FILE EVEN IT IS NOT A DIRECTORY
>
> It shouldn't do.
>
> $ man opendir
>
> RETURN VALUE
> The opendir() function returns a pointer to the directory stream.
> On error, NULL is returned, and errno is set appropriately.
>
> ERRORS
> ENOTDIR
> name is not a directory.
>
>
> I've tested this on my Linux box, and it definitely returns an error.
> If it works differently on SuSE systems, then that's a bug with opendir().
> You should report it to them.
>
> Dave
>
--
/BR, Alexander
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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