Prakash wrote:
Hello all,

            Here are the patch details for solving the problem of the unsatisfied 
symbol endfsent in 11.22 IPF(HPUX) machines.
I have applied the patch and tested it. Everything works fine. Please verify it.

path   : net-snmp-5.1.2/agent/mibgroup/ucd-snmp
file     : disk.c

[EMAIL PROTECTED] net-snmp]$ diff -uNr disk.c disk_new.c
--- disk.c 2004-10-05 21:14:07.000000000 +0530
+++ disk_new.c 2004-10-05 21:12:59.000000000 +0530
@@ -533,6 +533,13 @@
copy_nword(fstab->fs_spec, device,
sizeof(device));
}
+ endfsent();
+ if (device[0] != '\0') {
+ /*
+ * dummy clause for else below
+ */
+ }
+
#elif HAVE_STATFS
if (statfs(path, &statf) == 0) {
copy_word(statf.f_mntfromname, device);
@@ -545,9 +552,6 @@
path);
config_pwarn(tmpbuf);
}
-#if HAVE_FSTAB_H
- endfsent();
-#endif
#else
config_perror("'disk' checks not supported on this architecture.");
#endif /* HAVE_FSTAB_H || HAVE_GETMNTENT || HAVE_STATFS */


Thanks,
Prakash

The patch was applied to the 5.1 patches branch and main branch, and will be available in future releases. -Mike Slifcak



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to