diff options
author | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-05-03 20:43:50 +0000 |
---|---|---|
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-05-03 20:43:50 +0000 |
commit | 9a3e7f9e8778c845c8752af657364928081f5220 (patch) | |
tree | b281c401a3e26d41dc8c021c8f856c5762a61ada | |
parent | 26a7d1c1bcc5df96f11bfe91781336b839e4d59b (diff) | |
download | monitoring-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/check_disk.c | 1 |
3 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ | |||
1 | 2007-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 | |||
1 | 2007-04-10 08:17 dermoth | 6 | 2007-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 |
@@ -217,3 +217,4 @@ Mark Favas | |||
217 | Felix Frank | 217 | Felix Frank |
218 | Denis Knauf | 218 | Denis Knauf |
219 | Matthias Flacke | 219 | Matthias Flacke |
220 | Emil 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 | ||