aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-19 10:50:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-19 11:06:54 +0100
commita1856193b21445f2ae91488b6ba64f2eea20b50b (patch)
tree24d5cc70460d3f7d4b74b6bff26cf46563b7488a /src/libserver
parentf9244e59d9c48ddc8a572f4ec24d4846f4376ed4 (diff)
downloadrspamd-a1856193b21445f2ae91488b6ba64f2eea20b50b.tar.gz
rspamd-a1856193b21445f2ae91488b6ba64f2eea20b50b.zip
[Minor] Include file name when parsing config
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_rcl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 3be0a655c..8d18335d2 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -3440,6 +3440,7 @@ rspamd_config_parse_ucl (struct rspamd_config *cfg, const gchar *filename,
parser = ucl_parser_new (UCL_PARSER_SAVE_COMMENTS);
rspamd_ucl_add_conf_variables (parser, vars);
rspamd_ucl_add_conf_macros (parser, cfg);
+ ucl_parser_set_filevars (parser, filename, true);
if (decrypt_keypair) {
struct ucl_parser_special_handler *decrypt_handler;