From 7671dcac617c57f7a13644c2b465e161e2004bf5 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 62fbc1ec5..c3ff87f35 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