diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-30 11:13:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-30 11:13:07 +0100 |
commit | b45930d5c64030e815f046761541f61924e856b9 (patch) | |
tree | f32db8024221195e84b1d09615492b75080ce59e /src | |
parent | c6c53071887820bb7f96162658c884a5cb947a9b (diff) | |
parent | f5347ba81bc0ceda8e3354b0c984b8038148d364 (diff) | |
download | rspamd-b45930d5c64030e815f046761541f61924e856b9.tar.gz rspamd-b45930d5c64030e815f046761541f61924e856b9.zip |
Merge pull request #313 from fatalbanana/master
Favour rspamd lua libraries over system libraries
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index f16c3f1f4..c2c54dbe1 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -186,12 +186,12 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg) } if (additional_path) { - rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua;%s", - old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path); + rspamd_snprintf (path_buf, sizeof (path_buf), "%s/lua/?.lua;%s/lua/?.lua;%s;%s", + RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path, old_path); } else { - rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua", - old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR); + rspamd_snprintf (path_buf, sizeof (path_buf), "%s/lua/?.lua;%s/lua/?.lua;%s", + RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, old_path); } lua_pop (L, 1); |