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
|
diff -u check_disk.c-orig check_disk.c
--- check_disk.c-orig 2005-01-14 10:14:18.650350000 +1100
+++ check_disk.c 2005-01-14 10:19:13.238477000 +1100
@@ -20,6 +20,7 @@
* error.
*
* Notes:
+ * - Fixed logic error with -e switch where result not set (DA, 14/1/2005)
* - IRIX support added by Charlie Cook 4-16-1999
* - Modifications by Karl DeBisschop 1999-11-24
* reformat code to 80 char screen width
@@ -118,6 +119,8 @@
if (strcmp (file_system, "none") == 0)
strncpy (file_system, mntp, MAX_INPUT_BUFFER-1);
+ result = max_state (result, disk_result);
+
if (disk_result==STATE_OK && erronly && !verbose)
continue;
@@ -125,7 +128,6 @@
asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output,
free_disk, 100 - usp, display_mntp ? mntp : file_system);
- result = max_state (result, disk_result);
}
else {
|