diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-27 02:18:06 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-27 02:18:06 -0500 |
commit | 4a10a9493acaf1f12da12ef4881e2abacec1373a (patch) | |
tree | 40659d95a685525bff07250d9f81a38b64612915 | |
parent | 754cd092aea7d0f45f02c4fa695c827f7e81c5b2 (diff) | |
download | monitoring-plugins-4a10a94.tar.gz |
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
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/utils_base.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,8 @@ This file documents the major additions and syntax changes between releases. | |||
17 | but accepted for backward-compatibility | 17 | but accepted for backward-compatibility |
18 | check_ide_smart -0/--auto-off, -1/--auto-on and -i/--immediate: options have | 18 | check_ide_smart -0/--auto-off, -1/--auto-on and -i/--immediate: options have |
19 | been disabled because they were broken | 19 | been disabled because they were broken |
20 | State retention: the NAGIOS_PLUGIN_STATE_DIRECTORY environment variable has been | ||
21 | renamed MP_STATE_DIRECTORY. The old variable will continue to work in v1.6.x | ||
20 | 22 | ||
21 | 1.5 2nd October 2013 | 23 | 1.5 2nd October 2013 |
22 | ENHANCEMENTS | 24 | ENHANCEMENTS |
diff --git a/lib/utils_base.c b/lib/utils_base.c index 5c838d1d..fdd7d23c 100644 --- a/lib/utils_base.c +++ b/lib/utils_base.c | |||
@@ -420,7 +420,6 @@ char* _np_state_calculate_location_prefix(){ | |||
420 | /* Do not allow passing MP_STATE_DIRECTORY in setuid plugins | 420 | /* Do not allow passing MP_STATE_DIRECTORY in setuid plugins |
421 | * for security reasons */ | 421 | * for security reasons */ |
422 | if (mp_suid() == FALSE) { | 422 | if (mp_suid() == FALSE) { |
423 | /* FIXME: Undocumented */ | ||
424 | env_dir = getenv("MP_STATE_DIRECTORY"); | 423 | env_dir = getenv("MP_STATE_DIRECTORY"); |
425 | if(env_dir && env_dir[0] != '\0') | 424 | if(env_dir && env_dir[0] != '\0') |
426 | return env_dir; | 425 | return env_dir; |