]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Better function name as suggested by rgacogne. 8688/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 20 Jan 2020 13:42:16 +0000 (14:42 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 20 Jan 2020 13:42:16 +0000 (14:42 +0100)
pdns/pdns_recursor.cc

index 55a7f43e1b469b9f25f25997002cb92a3d5e82aa..070a7fba28ab97224ab54e84395a216b19f68945 100644 (file)
@@ -3809,12 +3809,12 @@ static void setupNODGlobal()
 }
 #endif /* NOD_ENABLED */
 
-static void checkDir(void)
+static void checkSocketDir(void)
 {
   struct stat st;
   string dir(::arg()["socket-dir"]);
   string msg;
-  
+
   if (stat(dir.c_str(), &st) == -1) {
     msg = "it does not exist or cannot access";
   }
@@ -4232,8 +4232,8 @@ static int serviceMain(int argc, char*argv[])
       g_log<<Logger::Info<<"Chrooted to '"<<::arg()["chroot"]<<"'"<<endl;
   }
 
-  checkDir();
-  
+  checkSocketDir();
+
   s_pidfname=::arg()["socket-dir"]+"/"+s_programname+".pid";
   if(!s_pidfname.empty())
     unlink(s_pidfname.c_str()); // remove possible old pid file