aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/lua_repl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm/lua_repl.c')
-rw-r--r--src/rspamadm/lua_repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c
index 58c803e3e..e3656e8c9 100644
--- a/src/rspamadm/lua_repl.c
+++ b/src/rspamadm/lua_repl.c
@@ -352,7 +352,7 @@ rspamadm_lua_message_handler (lua_State *L, gint argc, gchar **argv)
func_idx = lua_gettop (L);
for (i = 2; argv[i] != NULL; i ++) {
- map = rspamd_file_xmap (argv[i], PROT_READ, &len);
+ map = rspamd_file_xmap (argv[i], PROT_READ, &len, TRUE);
if (map == NULL) {
rspamd_printf ("cannot open %s: %s\n", argv[i], strerror (errno));