From 28ae1bf24e631d2f946424fb927524133f666122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 20 Jun 2018 13:13:11 +0300 Subject: [PATCH] MXS-1932: Ignore hidden files in maxscale.cnf.d All files that are hidden (i.e. start with a period) are now ignored by the configuration file processing. --- server/core/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/config.cc b/server/core/config.cc index d24602d40..15f1bb7c0 100644 --- a/server/core/config.cc +++ b/server/core/config.cc @@ -695,7 +695,7 @@ int config_cb(const char* fpath, const struct stat *sb, int typeflag, struct FTW const char* filename = fpath + ftwbuf->base; const char* dot = strrchr(filename, '.'); - if (dot) // that must have a suffix, + if (dot && *filename != '.') // that have a suffix and are not hidden, { const char* suffix = dot + 1;