summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2007-05-03 20:43:50 +0000
committerMatthias Eble <psychotrahe@users.sourceforge.net>2007-05-03 20:43:50 +0000
commit9a3e7f9e8778c845c8752af657364928081f5220 (patch)
treeb281c401a3e26d41dc8c021c8f856c5762a61ada
parent26a7d1c1bcc5df96f11bfe91781336b839e4d59b (diff)
downloadmonitoring-plugins-9a3e7f9e8778c845c8752af657364928081f5220.tar.gz
fixed backward incompatibility introduced in 1.4.8 where all partitions are selected,
if path is specified as last argument (without using -p). Thanks to Emil Michles (Emilis) on #nagios git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1706 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--ChangeLog5
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_disk.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 166b2a5c..7f6db96d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12007-05-03 22:34 psychotrahe
2
3 * plugins/check_disk.c: - Fix partition selection if if last
4 argument is a pathname/device without using -p
5
12007-04-10 08:17 dermoth 62007-04-10 08:17 dermoth
2 7
3 * po/: POTFILES.in, de.po, fr.po, nagios-plugins.pot: Add some 8 * po/: POTFILES.in, de.po, fr.po, nagios-plugins.pot: Add some
diff --git a/THANKS.in b/THANKS.in
index c9d604b4..b0ed31b7 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -217,3 +217,4 @@ Mark Favas
217Felix Frank 217Felix Frank
218Denis Knauf 218Denis Knauf
219Matthias Flacke 219Matthias Flacke
220Emil Michles
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 4872efca..c32c7ab3 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -734,6 +734,7 @@ process_arguments (int argc, char **argv)
734 734
735 if (argc > c && path == NULL) { 735 if (argc > c && path == NULL) {
736 se = np_add_parameter(&path_select_list, strdup(argv[c++])); 736 se = np_add_parameter(&path_select_list, strdup(argv[c++]));
737 path_selected = true;
737 set_all_thresholds(se); 738 set_all_thresholds(se);
738 } 739 }
739 740