From: Michael Friedrich Date: Sat, 7 Feb 2015 22:41:43 +0000 (+0100) Subject: Fix authoritative zones in config sync X-Git-Tag: v2.3.0~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21f86b9061928ba646eb442f4b3712880da570f1;p=icinga2 Fix authoritative zones in config sync fixes #8388 refs #8256 --- diff --git a/lib/remote/apilistener-sync.cpp b/lib/remote/apilistener-sync.cpp index b36d7cc5c..51120462b 100644 --- a/lib/remote/apilistener-sync.cpp +++ b/lib/remote/apilistener-sync.cpp @@ -105,8 +105,8 @@ bool ApiListener::UpdateConfigDir(const Dictionary::Ptr& oldConfig, const Dictio if (authoritative) { String authPath = configDir + "/.authoritative"; - if (!Utility::PathExists(tsPath)) { - std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc); + if (!Utility::PathExists(authPath)) { + std::ofstream fp(authPath.CStr(), std::ofstream::out | std::ostream::trunc); fp.close(); } }