From: zbyniu Date: Thu, 17 Nov 2005 23:14:05 +0000 (+0000) Subject: - obsoleted X-Git-Tag: auto/ac/pdns-2_9_19-3~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpdns.git;a=commitdiff_plain;h=b530eefe8be1c53b3460da453cb1f5c1cb4576d8 - obsoleted Changed files: pdns-strbind.patch -> 1.2 --- diff --git a/pdns-strbind.patch b/pdns-strbind.patch deleted file mode 100644 index e2b7ad9..0000000 --- a/pdns-strbind.patch +++ /dev/null @@ -1,40 +0,0 @@ ---- pdns-2.9.17/modules/ldapbackend/utils.hh 2004-02-22 10:35:01.000000000 +0100 -+++ pdns-2.9.17.new/modules/ldapbackend/utils.hh 2005-05-20 11:15:40.530121464 +0200 -@@ -73,7 +73,7 @@ - } - - --inline string ip2ptr4( string ip ) -+inline string ip2ptr4( const string& ip ) - { - string ptr; - vector parts; -@@ -89,7 +89,7 @@ - } - - --inline string ip2ptr6( string ip ) -+inline string ip2ptr6( const string& ip ) - { - string ptr, part, defstr; - vector parts; -@@ -116,4 +116,19 @@ - return ptr + "ip6.arpa"; - } - -+ -+inline string strbind( const string& search, const string& replace, string subject ) -+{ -+ size_t pos = 0; -+ -+ -+ while( ( pos = subject.find( search, pos ) ) != string::npos ) -+ { -+ subject.replace( pos, search.size(), replace ); -+ pos += replace.size(); -+ } -+ -+ return subject; -+} -+ - #endif