From 981c2f67a2303bb39ced766f55439741301b7f6b Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 7 Sep 2016 21:21:53 +0200 Subject: [PATCH] make sure that zone2ldap encodes root as . --- pdns/zone2ldap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/zone2ldap.cc b/pdns/zone2ldap.cc index bbb65f2fe..e17d2f2a6 100644 --- a/pdns/zone2ldap.cc +++ b/pdns/zone2ldap.cc @@ -83,8 +83,8 @@ static void callback_simple( unsigned int domain_id, const DNSName &domain, cons cout << "changetype: modify" << endl; cout << "add: " << qtype << "Record" << endl; } - - cout << qtype << "Record: " << stripDot( content ) << endl << endl; + string stripped=stripDot(content); + cout << qtype << "Record: " << stripped << ((stripped.empty() || stripped[stripped.size()-1]==' ') ? "." : "") << endl << endl; } -- 2.40.0