]> granicus.if.org Git - icinga2/commitdiff
IcingaApplication#DumpProgramState(): follow Configuration::StatePath and Configurati... feature/follow-links 7562/head
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Thu, 3 Oct 2019 15:06:38 +0000 (17:06 +0200)
committerAlexander A. Klimov <grandmaster@al2klimov.de>
Thu, 3 Oct 2019 15:06:38 +0000 (17:06 +0200)
lib/icinga/icingaapplication.cpp

index 451f009da952694e770636ecbe8cc1efc3cd5448..9fa2640cae638d5768988ddc99bcd745be5b611c 100644 (file)
@@ -155,13 +155,13 @@ static void PersistModAttrHelper(std::fstream& fp, ConfigObject::Ptr& previousOb
 
 void IcingaApplication::DumpProgramState()
 {
-       ConfigObject::DumpObjects(Configuration::StatePath);
+       ConfigObject::DumpObjects(Utility::RealPath(Configuration::StatePath));
        DumpModifiedAttributes();
 }
 
 void IcingaApplication::DumpModifiedAttributes()
 {
-       String path = Configuration::ModAttrPath;
+       String path = Utility::RealPath(Configuration::ModAttrPath);
 
        std::fstream fp;
        String tempFilename = Utility::CreateTempFile(path + ".XXXXXX", 0644, fp);