]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Better function name as suggested by rgacogne. 8726/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 14:55:59 +0000 (15:55 +0100)
(cherry picked from commit c6042a88ccf588e718daf1ddd35622d85b7f3dde)

pdns/pdns_recursor.cc

index 5f1a2a2183ea2aa6234b3ae53504790576f95db5..cc82fec562e1365820d6564ba4b12f5edad8ad3a 100644 (file)
@@ -3812,12 +3812,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";
   }
@@ -4235,8 +4235,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