[monitoring-plugins] And release notes for previous change ...

Git Repository git at monitoring-plugins.org
Mon Jan 27 12:40:07 CET 2014


 Module: monitoring-plugins
 Branch: master
 Commit: 4a10a9493acaf1f12da12ef4881e2abacec1373a
 Author: Thomas Guyot-Sionnest <dermoth at aei.ca>
   Date: Mon Jan 27 02:18:06 2014 -0500
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4a10a94

And release notes for previous change (MP_STATE_DIRECTORY)

The change has also been updated in
https://www.monitoring-plugins.org/doc/state-retention.html

---

 NEWS             | 2 ++
 lib/utils_base.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 218cb53..cd5a046 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,8 @@ This file documents the major additions and syntax changes between releases.
 	  but accepted for backward-compatibility
 	check_ide_smart -0/--auto-off, -1/--auto-on and -i/--immediate: options have
 	  been disabled because they were broken
+	State retention: the NAGIOS_PLUGIN_STATE_DIRECTORY environment variable has been
+	  renamed MP_STATE_DIRECTORY. The old variable will continue to work in v1.6.x
 
 1.5 2nd October 2013
 	ENHANCEMENTS
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 5c838d1..fdd7d23 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -420,7 +420,6 @@ char* _np_state_calculate_location_prefix(){
 	/* Do not allow passing MP_STATE_DIRECTORY in setuid plugins
 	 * for security reasons */
 	if (mp_suid() == FALSE) {
-		/* FIXME: Undocumented */
 		env_dir = getenv("MP_STATE_DIRECTORY");
 		if(env_dir && env_dir[0] != '\0')
 			return env_dir;



More information about the Commits mailing list