]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make rec_control respect include-dir; closes #6536
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 1 May 2018 17:16:52 +0000 (19:16 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 20 Aug 2018 13:01:36 +0000 (15:01 +0200)
(cherry picked from commit 14cd977426717d549120404b29f13e66c3acc044)

pdns/rec_control.cc

index f9658d468edb33ea9e8cfe1342a63ae87eb1ab34..90f6fd1c218d6071c54d9feec207a50c12e86ba4 100644 (file)
@@ -66,10 +66,7 @@ static void initArguments(int argc, char** argv)
   
   cleanSlashes(configname);
 
-  if(!::arg().preParseFile(configname.c_str(), "socket-dir", ""))
-    cerr<<"Warning: unable to parse configuration file '"<<configname<<"'"<<endl;
-  if(!::arg().preParseFile(configname.c_str(), "chroot", ""))
-    cerr<<"Warning: unable to parse configuration file '"<<configname<<"'"<<endl;
+  arg().laxFile(configname.c_str());
 
   arg().laxParse(argc,argv);   // make sure the commandline wins