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