Hi All,

I am using net-snmp 5.1.1. I have written an app that needs to read all the mib files in a give directory, which should happen in init_mib but it is not.

I have tracked it down to the fscanf in the add_mibdir function in parse.c

while (fscanf(ip, "%127s%c%299s%c", token, &space, tmpstr, &newline) == 4) {
...
}

This is returning -1 so no mibs are getting read. The .index file has the following format

MODULE MIBFILE
MODULE MIBFILE
...

Is this a known issue or should I fix and send a patch?

        Thanks

                Glenn


------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to