I saw something similar last weekend.
The attached patch fixed it for me.
One thing that seemed odd is that setPerrorstatus is used on quite a few places
and defined in all files where it is used, I wounder why it snmp_log_perror
isn't used instead.
/MF
diff -u -r1.10 execute.c
--- agent/mibgroup/utilities/execute.c 14 Dec 2004 13:16:54 -0000 1.10
+++ agent/mibgroup/utilities/execute.c 4 Jan 2005 16:55:24 -0000
@@ -36,6 +36,8 @@
#include "util_funcs.h"
+#define setPerrorstatus(x) snmp_log_perror(x)
+
int
run_shell_command( char *command, char *input,
char *output, int *out_len) /* Or realloc style ? */
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders