From: Andrew Lewis Date: Wed, 25 Feb 2015 12:47:11 +0000 (+0200) Subject: Fix default lua package path X-Git-Tag: 0.9.0~625^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F184%2Fhead;p=rspamd.git Fix default lua package path --- diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 19d0d09d0..123b81dad 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -307,11 +307,11 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg) } if (additional_path) { - rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/?.lua;%s/?.lua;%s", + rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua;%s", old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path); } else { - rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/?.lua;%s/?.lua", + rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua", old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR); }