summaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-09 13:59:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-09 14:06:40 +0100
commit4c2c4f0fdc54f9bdb5371a108c3dc7886e6c81ec (patch)
tree731e32b41934b03c0d7fc802f57e76eb58ea2cb1 /src/client/rspamc.c
parent7b0d41173904268944de296ab85f20efef91bde5 (diff)
downloadrspamd-4c2c4f0fdc54f9bdb5371a108c3dc7886e6c81ec.tar.gz
rspamd-4c2c4f0fdc54f9bdb5371a108c3dc7886e6c81ec.zip
[Fix] Allow to follow symlinks when safe
Issue: #1625
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r--src/client/rspamc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 21b3fd6a3..2f09956ca 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -340,7 +340,7 @@ rspamc_password_callback (const gchar *option_name,
if (value != NULL) {
if (value[0] == '/' || value[0] == '.') {
/* Try to open file */
- map = rspamd_file_xmap (value, PROT_READ, &sz);
+ map = rspamd_file_xmap (value, PROT_READ, &sz, 0);
if (map == NULL) {
/* Just use it as a string */