From e27c0ecef59272d4723f904a17061b4e59f0a6db Mon Sep 17 00:00:00 2001 From: Michal Židek Date: Fri, 1 Jul 2016 09:58:41 +0200 Subject: config: Fix filename matching regex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configuration file snippets must end with suffix .conf. We wrongly allowed any suffixes that begin with .conf (for example .conf.back). Reviewed-by: Lukáš Slebodník --- src/util/sss_ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/sss_ini.c b/src/util/sss_ini.c index b4dbb0772..4438f8c89 100644 --- a/src/util/sss_ini.c +++ b/src/util/sss_ini.c @@ -211,7 +211,7 @@ int sss_ini_get_config(struct sss_ini_initdata *init_data, int ret; #ifdef HAVE_LIBINI_CONFIG_V1 #ifdef HAVE_LIBINI_CONFIG_V1_3 - const char *patterns[] = { "^[^\\.].*\\.conf", NULL }; + const char *patterns[] = { "^[^\\.].*\\.conf$", NULL }; const char *sections[] = { ".*", NULL }; uint32_t i = 0; char *msg = NULL; -- cgit