On Tue, 08 Jun 2004 16:55:10 -0400 Glenn wrote: GM> I am using net-snmp 5.1.1. I have written an app that needs to read all GM> the mib files in a give directory, which should happen in init_mib but GM> it is not. GM> GM> I have tracked it down to the fscanf in the add_mibdir function in parse.c GM> GM> while (fscanf(ip, "%127s%c%299s%c", token, &space, tmpstr, &newline) == 4) GM> {... GM> } GM> GM> This is returning -1 so no mibs are getting read. The .index file has GM> the following format GM> GM> MODULE MIBFILE GM> MODULE MIBFILE GM> ... GM> GM> Is this a known issue or should I fix and send a patch?
Well, I'm not sure what you are proposing to change. Have you tried deleting your .index file so it will be regenerated? -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- 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