summaryrefslogtreecommitdiffstats
path: root/web/attachments/309099-check_disk.txt
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/309099-check_disk.txt')
-rw-r--r--web/attachments/309099-check_disk.txt68
1 files changed, 68 insertions, 0 deletions
diff --git a/web/attachments/309099-check_disk.txt b/web/attachments/309099-check_disk.txt
new file mode 100644
index 0000000..500ab18
--- /dev/null
+++ b/web/attachments/309099-check_disk.txt
@@ -0,0 +1,68 @@
1*** plugins/check_disk.c.orig Thu Jul 10 11:03:55 2008
2--- plugins/check_disk.c Wed Jan 14 11:49:37 2009
3***************
4*** 155,160 ****
5--- 155,161 ----
6 int path_selected = FALSE;
7 char *group = NULL;
8 struct stat *stat_buf;
9+ int no_match_ok = 0;
10
11
12 int
13***************
14*** 493,498 ****
15--- 494,500 ----
16 {"ignore-ereg-partition", required_argument, 0, 'i'},
17 {"ignore-eregi-path", required_argument, 0, 'I'},
18 {"ignore-eregi-partition", required_argument, 0, 'I'},
19+ {"no-match-ok", no_argument, 0, 'n'},
20 {"local", no_argument, 0, 'l'},
21 {"stat-remote-fs", no_argument, 0, 'L'},
22 {"mountpoint", no_argument, 0, 'M'},
23***************
24*** 517,523 ****
25 strcpy (argv[c], "-t");
26
27 while (1) {
28! c = getopt_long (argc, argv, "+?VqhveCt:c:w:K:W:u:p:x:X:mklLg:R:r:i:I:MEA", longopts, &option);
29
30 if (c == -1 || c == EOF)
31 break;
32--- 519,525 ----
33 strcpy (argv[c], "-t");
34
35 while (1) {
36! c = getopt_long (argc, argv, "+?VqhveCt:c:w:K:W:u:p:x:X:mklLg:R:r:i:I:MEAn", longopts, &option);
37
38 if (c == -1 || c == EOF)
39 break;
40***************
41*** 669,674 ****
42--- 671,679 ----
43 die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set group value before selecting pathes \n"));
44 group = optarg;
45 break;
46+ case 'n': /* Don't complain if a regular expression doesn't match anything */
47+ no_match_ok = 1;
48+ break;
49 case 'I':
50 cflags |= REG_ICASE;
51 case 'i':
52***************
53*** 741,747 ****
54 }
55 }
56
57! if (!fnd)
58 die (STATE_UNKNOWN, "DISK %s: %s - %s\n",_("UNKNOWN"),
59 _("Regular expression did not match any path or disk"), optarg);
60
61--- 746,752 ----
62 }
63 }
64
65! if (!fnd && !no_match_ok)
66 die (STATE_UNKNOWN, "DISK %s: %s - %s\n",_("UNKNOWN"),
67 _("Regular expression did not match any path or disk"), optarg);
68