From: Bert Hubert Date: Fri, 11 Nov 2005 21:02:51 +0000 (+0000) Subject: Pipebackend did not properly propagate pipebackend-abi-version. This closes #45 by... X-Git-Tag: pdns-2.9.20~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8348e9fd5de1dbc414ca01352361b8e26d27ddc6;p=thirdparty%2Fpdns.git Pipebackend did not properly propagate pipebackend-abi-version. This closes #45 by 'kickdaddy@gmail.com' git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@546 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/modules/pipebackend/backend.pl b/modules/pipebackend/backend.pl index 2a25435b5e..d4e8dd546b 100755 --- a/modules/pipebackend/backend.pl +++ b/modules/pipebackend/backend.pl @@ -12,7 +12,7 @@ chomp($line); unless($line eq "HELO\t1") { print "FAIL\n"; - print STDERR "Recevied '$line'\n"; + print STDERR "Received '$line'\n"; <>; exit; } diff --git a/modules/pipebackend/pipebackend.cc b/modules/pipebackend/pipebackend.cc index 6ea5b4a5fe..6190aa4dc5 100644 --- a/modules/pipebackend/pipebackend.cc +++ b/modules/pipebackend/pipebackend.cc @@ -22,6 +22,9 @@ using namespace std; #include #include #include +#include + +using namespace boost; #include "pipebackend.hh" @@ -49,7 +52,7 @@ void CoWrapper::launch() return; d_cp=new CoProcess(d_command, d_timeout); - d_cp->send("HELO\t1"); + d_cp->send("HELO\t"+lexical_cast(arg().asNum("pipebackend-abi-version"))); string banner; d_cp->receive(banner); L<