From 9f6c66c41a33b6c38f6668af22b57bc4b9c44099 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 19 Oct 2018 10:42:54 +0200 Subject: [PATCH] Fix regression for wrong objects.cache path overwriting icinga2.debug file The 'statusdata' feature is deprecated, although it affects 'object list'. fixes #6705 --- lib/compat/statusdatawriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compat/statusdatawriter.cpp b/lib/compat/statusdatawriter.cpp index a1821ad1a..95514f2e5 100644 --- a/lib/compat/statusdatawriter.cpp +++ b/lib/compat/statusdatawriter.cpp @@ -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); -- 2.40.0