diff options
Diffstat (limited to 'web/attachments/116832-check_dig_tabspatch.diff')
-rw-r--r-- | web/attachments/116832-check_dig_tabspatch.diff | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/web/attachments/116832-check_dig_tabspatch.diff b/web/attachments/116832-check_dig_tabspatch.diff new file mode 100644 index 0000000..552c6b9 --- /dev/null +++ b/web/attachments/116832-check_dig_tabspatch.diff | |||
@@ -0,0 +1,38 @@ | |||
1 | Index: check_dig.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dig.c,v | ||
4 | retrieving revision 1.39 | ||
5 | diff -c -r1.39 check_dig.c | ||
6 | *** check_dig.c 25 Dec 2004 23:17:38 -0000 1.39 | ||
7 | --- check_dig.c 23 Jan 2005 05:00:19 -0000 | ||
8 | *************** | ||
9 | *** 124,129 **** | ||
10 | --- 124,133 ---- | ||
11 | result = STATE_OK; | ||
12 | } | ||
13 | |||
14 | + /* rmo: 050122 - Translate output TAB -> SPACE */ | ||
15 | + char *t = output; | ||
16 | + while ((t = index(t, '\t')) != NULL) {*t = ' ';} | ||
17 | + | ||
18 | } while (!strstr (input_buffer, ";; ")); | ||
19 | |||
20 | if (result == STATE_UNKNOWN) { | ||
21 | *************** | ||
22 | *** 334,340 **** | ||
23 | |||
24 | printf (_("\ | ||
25 | -a, --expected_address=STRING\n\ | ||
26 | ! an address expected to be in the asnwer section.\n\ | ||
27 | if not set, uses whatever was in -l\n")); | ||
28 | |||
29 | printf (_(UT_WARN_CRIT)); | ||
30 | --- 338,344 ---- | ||
31 | |||
32 | printf (_("\ | ||
33 | -a, --expected_address=STRING\n\ | ||
34 | ! an address expected to be in the answer section.\n\ | ||
35 | if not set, uses whatever was in -l\n")); | ||
36 | |||
37 | printf (_(UT_WARN_CRIT)); | ||
38 | |||