From 9a3e7f9e8778c845c8752af657364928081f5220 Mon Sep 17 00:00:00 2001
From: Matthias Eble <psychotrahe@users.sourceforge.net>
Date: Thu, 3 May 2007 20:43:50 +0000
Subject: 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

diff --git a/ChangeLog b/ChangeLog
index 166b2a5..7f6db96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-03 22:34  psychotrahe
+
+	* plugins/check_disk.c: - Fix partition selection if if last
+	  argument is a pathname/device without using -p
+
 2007-04-10 08:17  dermoth
 
 	* po/: POTFILES.in, de.po, fr.po, nagios-plugins.pot: Add some
diff --git a/THANKS.in b/THANKS.in
index c9d604b..b0ed31b 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -217,3 +217,4 @@ Mark Favas
 Felix Frank
 Denis Knauf
 Matthias Flacke
+Emil Michles
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 4872efc..c32c7ab 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -734,6 +734,7 @@ process_arguments (int argc, char **argv)
 
   if (argc > c && path == NULL) {
     se = np_add_parameter(&path_select_list, strdup(argv[c++]));
+    path_selected = true;
     set_all_thresholds(se);
   }
 
-- 
cgit v0.10-9-g596f

