Fix regression for wrong objects.cache path overwriting icinga2.debug file

The 'statusdata' feature is deprecated, although it affects 'object list'.

fixes #6705
This commit is contained in:
Michael Friedrich 2018-10-19 10:42:54 +02:00
parent 582d8f4961
commit 9f6c66c41a
1 changed files with 2 additions and 1 deletions

View File

@ -559,7 +559,8 @@ void StatusDataWriter::UpdateObjectsCache()
{
CONTEXT("Writing objects.cache file");
String objectsPath = Configuration::ObjectsPath;
/* Use the compat path here from the .ti generated class. */
String objectsPath = GetObjectsPath();
std::fstream objectfp;
String tempObjectsPath = Utility::CreateTempFile(objectsPath + ".XXXXXX", 0644, objectfp);