diff options
Diffstat (limited to 'web/attachments/137593-check_hpjd.patch')
-rw-r--r-- | web/attachments/137593-check_hpjd.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/web/attachments/137593-check_hpjd.patch b/web/attachments/137593-check_hpjd.patch new file mode 100644 index 0000000..3c3cc8f --- /dev/null +++ b/web/attachments/137593-check_hpjd.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | --- check_hpjd.orig 2005-06-07 17:57:13.000000000 +0100 | ||
2 | +++ check_hpjd.c 2005-06-07 18:19:18.000000000 +0100 | ||
3 | @@ -36,8 +36,8 @@ | ||
4 | #define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2" | ||
5 | #define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3" | ||
6 | #define HPJD_GD_PERIPHERAL_ERROR ".1.3.6.1.4.1.11.2.3.9.1.1.2.6" | ||
7 | -#define HPJD_GD_PAPER_JAM ".1.3.6.1.4.1.11.2.3.9.1.1.2.8" | ||
8 | -#define HPJD_GD_PAPER_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.9" | ||
9 | +#define HPJD_GD_PAPER_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.8" | ||
10 | +#define HPJD_GD_PAPER_JAM ".1.3.6.1.4.1.11.2.3.9.1.1.2.9" | ||
11 | #define HPJD_GD_TONER_LOW ".1.3.6.1.4.1.11.2.3.9.1.1.2.10" | ||
12 | #define HPJD_GD_PAGE_PUNT ".1.3.6.1.4.1.11.2.3.9.1.1.2.11" | ||
13 | #define HPJD_GD_MEMORY_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.12" | ||
14 | @@ -134,7 +134,7 @@ | ||
15 | temp_buffer = strtok (input_buffer, "="); | ||
16 | temp_buffer = strtok (NULL, "="); | ||
17 | |||
18 | - if (temp_buffer == NULL) { | ||
19 | + if (temp_buffer == NULL && line < 13) { | ||
20 | |||
21 | result = STATE_UNKNOWN; | ||
22 | strcpy (errmsg, input_buffer); | ||
23 | @@ -179,8 +179,9 @@ | ||
24 | case 12: /* display panel message */ | ||
25 | strcpy (display_message, temp_buffer + 1); | ||
26 | break; | ||
27 | - default: | ||
28 | - break; | ||
29 | + default: /* fold multiline message */ | ||
30 | + strncat (display_message, input_buffer, | ||
31 | + sizeof (display_message) - strlen (display_message) - 1); | ||
32 | } | ||
33 | |||
34 | } | ||