diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-07 22:17:55 +0200 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-07 22:17:55 +0200 |
commit | 2c2f97b658798c0ccecf394a981725e945025fc9 (patch) | |
tree | d1773a222f8f7e48c42bc79eee49b63cf729f4d7 | |
parent | 651b4eb898410a761f27a511b0b99302080ecea3 (diff) | |
download | rspamd-2c2f97b658798c0ccecf394a981725e945025fc9.tar.gz rspamd-2c2f97b658798c0ccecf394a981725e945025fc9.zip |
[Fix] Fix setting path for lua
Issue: #652
Reported by: @vurgun
-rw-r--r-- | src/lua/lua_common.c | 4 |
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); } |