summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-07 22:17:55 +0200
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-07 22:17:55 +0200
commit2c2f97b658798c0ccecf394a981725e945025fc9 (patch)
treed1773a222f8f7e48c42bc79eee49b63cf729f4d7
parent651b4eb898410a761f27a511b0b99302080ecea3 (diff)
downloadrspamd-2c2f97b658798c0ccecf394a981725e945025fc9.tar.gz
rspamd-2c2f97b658798c0ccecf394a981725e945025fc9.zip
[Fix] Fix setting path for lua
Issue: #652 Reported by: @vurgun
-rw-r--r--src/lua/lua_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 4c5051aeb..85dbfa372 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -187,13 +187,13 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg)
if (additional_path) {
rspamd_snprintf (path_buf, sizeof (path_buf),
- "%s/lua/?.lua;%s/lua/?.lua;%s;%s;%s",
+ "%s/lua/?.lua;%s/lua/?.lua;%s/?.lua;%s;%s",
RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, RSPAMD_RULESDIR,
additional_path, old_path);
}
else {
rspamd_snprintf (path_buf, sizeof (path_buf),
- "%s/lua/?.lua;%s/lua/?.lua;%s;%s",
+ "%s/lua/?.lua;%s/lua/?.lua;%s/?.lua;%s",
RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, RSPAMD_RULESDIR,
old_path);
}