]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/rec_control.cc
make rec_control respect include-dir; closes #6536
[thirdparty/pdns.git] / 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