Merge pull request #6707 from Icinga/bugfix/compat-objects-path

Fix regression for wrong objects.cache path overwriting icinga2.debug file
This commit is contained in:
Michael Friedrich 2018-10-19 12:30:53 +02:00 committed by GitHub
commit aebe6da168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);