From e7c07062f8f70098cf73c41ca594178b20360d3c Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 2 Oct 2019 10:49:02 +0200 Subject: [PATCH] Avoid syncing .authorititative marker received from < 2.11 parent nodes --- lib/remote/apilistener-filesync.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 4aa381c43..f069e2623 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -450,6 +450,10 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D << "Stage: Updating received configuration file '" << path << "' for zone '" << zoneName << "'."; } + // Parent nodes < 2.11 always send this, avoid this bug and deny its receival prior to writing it on disk. + if (Utility::BaseName(path) == ".authoritative") + continue; + // Sync string content only. String content = kv.second;