summaryrefslogtreecommitdiffstats
path: root/plugins/check_disk.c
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 /plugins/check_disk.c
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
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r--plugins/check_disk.c1
1 files changed, 1 insertions, 0 deletions
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