diff options
Diffstat (limited to 'web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch')
-rw-r--r-- | web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch b/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch new file mode 100644 index 0000000..47d51fc --- /dev/null +++ b/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | --- nagios-plugins-1.4.2/plugins/check_snmp.c.orig Wed Jun | ||
2 | 1 15:41: | ||
3 | 01 2005 | ||
4 | +++ nagios-plugins-1.4.2/plugins/check_snmp.c Thu Jan 12 | ||
5 | 18:22: | ||
6 | 47 2006 | ||
7 | @@ -337,10 +337,17 @@ | ||
8 | asprintf (&outbuff, "%s %s", outbuff, unitv[i]); | ||
9 | |||
10 | i++; | ||
11 | - | ||
12 | +#if 0 | ||
13 | char *str[MAX_INPUT_BUFFER]; | ||
14 | asprintf(str, "=%s%s;;;; ", show, type ? type : ""); | ||
15 | strcat(perfstr, *str); | ||
16 | +#else | ||
17 | + strcat(perfstr, "="); | ||
18 | + strcat(perfstr, show); | ||
19 | + if (type) | ||
20 | + strcat(perfstr, type); | ||
21 | + strcat(perfstr, ";;;; "); | ||
22 | +#endif | ||
23 | |||
24 | } /* end while (ptr) */ | ||
25 | |||