From: Remi Gacogne Date: Mon, 13 Nov 2023 13:23:55 +0000 (+0100) Subject: dnsdist: Hopefully make clang-tidy happy X-Git-Tag: rec-5.0.0-rc1~46^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13191%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Hopefully make clang-tidy happy --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 2f2dce8451..2b47f26007 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1880,9 +1880,10 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) if (boost::ends_with(ent->d_name, ".conf")) { std::ostringstream namebuf; + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay): this is what dirent is namebuf << dirname << "/" << ent->d_name; - if (stat(namebuf.str().c_str(), &st) || !S_ISREG(st.st_mode)) { + if (stat(namebuf.str().c_str(), &st) != 0 || !S_ISREG(st.st_mode)) { continue; }