summaryrefslogtreecommitdiffstats
path: root/web/attachments/115753-check_disk.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/115753-check_disk.patch')
-rw-r--r--web/attachments/115753-check_disk.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/web/attachments/115753-check_disk.patch b/web/attachments/115753-check_disk.patch
new file mode 100644
index 0000000..aafe4dc
--- /dev/null
+++ b/web/attachments/115753-check_disk.patch
@@ -0,0 +1,28 @@
1diff -u check_disk.c-orig check_disk.c
2--- check_disk.c-orig 2005-01-14 10:14:18.650350000 +1100
3+++ check_disk.c 2005-01-14 10:19:13.238477000 +1100
4@@ -20,6 +20,7 @@
5 * error.
6 *
7 * Notes:
8+ * - Fixed logic error with -e switch where result not set (DA, 14/1/2005)
9 * - IRIX support added by Charlie Cook 4-16-1999
10 * - Modifications by Karl DeBisschop 1999-11-24
11 * reformat code to 80 char screen width
12@@ -118,6 +119,8 @@
13 if (strcmp (file_system, "none") == 0)
14 strncpy (file_system, mntp, MAX_INPUT_BUFFER-1);
15
16+ result = max_state (result, disk_result);
17+
18 if (disk_result==STATE_OK && erronly && !verbose)
19 continue;
20
21@@ -125,7 +128,6 @@
22 asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output,
23 free_disk, 100 - usp, display_mntp ? mntp : file_system);
24
25- result = max_state (result, disk_result);
26 }
27
28 else {