Fix authoritative zones in config sync

fixes #8388
refs #8256
This commit is contained in:
Michael Friedrich 2015-02-07 23:41:43 +01:00
parent 19c374040e
commit 21f86b9061
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}