diff options
author | Andrew Lewis <nerf@judo.za.org> | 2015-02-25 14:47:11 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-02-25 14:47:11 +0200 |
commit | f001d7263a65950da6bb1acae668ad65dde98fd8 (patch) | |
tree | 63b464e739af42a241b8f1980b5e6d915cce99b9 /src/lua | |
parent | a55253e2c6c485bbe7a78211b12a422e8420d9e2 (diff) | |
download | rspamd-f001d7263a65950da6bb1acae668ad65dde98fd8.tar.gz rspamd-f001d7263a65950da6bb1acae668ad65dde98fd8.zip |
Fix default lua package path
Diffstat (limited to 'src/lua')
-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 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); } |