From f001d7263a65950da6bb1acae668ad65dde98fd8 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 25 Feb 2015 14:47:11 +0200 Subject: [PATCH] Fix default lua package path --- src/lua/lua_common.c | 4 ++-- 1 file 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); } -- 2.39.5