summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-02-25 14:47:11 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-02-25 14:47:11 +0200
commitf001d7263a65950da6bb1acae668ad65dde98fd8 (patch)
tree63b464e739af42a241b8f1980b5e6d915cce99b9 /src/lua
parenta55253e2c6c485bbe7a78211b12a422e8420d9e2 (diff)
downloadrspamd-f001d7263a65950da6bb1acae668ad65dde98fd8.tar.gz
rspamd-f001d7263a65950da6bb1acae668ad65dde98fd8.zip
Fix default lua package path
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.c4
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);
}