Skip to content

Commit

Permalink
Fix authoritative zones in config sync
Browse files Browse the repository at this point in the history
fixes #8388
refs #8256
  • Loading branch information
dnsmichi committed Feb 7, 2015
1 parent 19c3740 commit 21f86b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/remote/apilistener-sync.cpp
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 21f86b9

Please sign in to comment.