]> source.dussan.org Git - rspamd.git/commitdiff
Fix default lua package path 185/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 25 Feb 2015 12:47:11 +0000 (14:47 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 25 Feb 2015 12:47:58 +0000 (14:47 +0200)
src/lua/lua_common.c

index 62fbc1ec53057adade76760dc5b5b4e5298fa0ef..c3ff87f35f9f94310672e8f01ae662b72161502d 100644 (file)
@@ -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);
        }