summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2016-07-01 09:58:41 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-07-01 11:22:16 +0200
commite27c0ecef59272d4723f904a17061b4e59f0a6db (patch)
treec5f2e5d1e574d2a504750cc66e0569a84f6e19e8
parent8a1ad2a2cc489c202092af321f4c4a9787802ed6 (diff)
downloadsssd-e27c0ecef59272d4723f904a17061b4e59f0a6db.tar.gz
sssd-e27c0ecef59272d4723f904a17061b4e59f0a6db.tar.xz
sssd-e27c0ecef59272d4723f904a17061b4e59f0a6db.zip
config: Fix filename matching regex
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 <lslebodn@redhat.com>
-rw-r--r--src/util/sss_ini.c2
1 files changed, 1 insertions, 1 deletions
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;