From: Otto Moerbeek Date: Mon, 20 Jan 2020 13:42:16 +0000 (+0100) Subject: Better function name as suggested by rgacogne. X-Git-Tag: rec-4.3.0-rc1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8726%2Fhead;p=thirdparty%2Fpdns.git Better function name as suggested by rgacogne. (cherry picked from commit c6042a88ccf588e718daf1ddd35622d85b7f3dde) --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 5f1a2a2183..cc82fec562 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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<