]> source.dussan.org Git - rspamd.git/commitdiff
Fix default lua package path 184/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:11 +0000 (14:47 +0200)
src/lua/lua_common.c

index 19d0d09d060d0b10e2f34ba7a54c7cce02c294f8..123b81dad6af663260a0a9e212c63d315ecb8f16 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);
        }