From: Andrew Lewis Date: Mon, 29 Jun 2015 16:14:27 +0000 (+0200) Subject: Favour rspamd lua libraries over system libraries X-Git-Tag: 0.9.9~30^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9bbf9eee8e5c51945f0c0ad39bdbb743a6f8155;p=rspamd.git Favour rspamd lua libraries over system libraries --- 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);