summaryrefslogtreecommitdiffstats
path: root/web/attachments/119648-check_disk.c.diff
blob: 1e0e5fca6aa779647810052c518d5898f7e96b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- check_disk.c.orig	2005-02-11 17:37:48.254928480 +0300
+++ check_disk.c	2005-02-11 17:37:44.193545904 +0300
@@ -118,8 +118,11 @@
 			if (strcmp (file_system, "none") == 0)
 				strncpy (file_system, mntp, MAX_INPUT_BUFFER-1);
 
-			if (disk_result==STATE_OK && erronly && !verbose)
+			/* FIX: If everything is ok set result */
+			if (disk_result==STATE_OK && erronly && !verbose) {
+				result = max_state (result, disk_result);
 				continue;
+			}
 
 			if (disk_result!=STATE_OK || verbose>=0) 
 				asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output,