]> source.dussan.org Git - rspamd.git/commitdiff
Favour rspamd lua libraries over system libraries
authorAndrew Lewis <nerf@judo.za.org>
Mon, 29 Jun 2015 16:14:27 +0000 (18:14 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 29 Jun 2015 16:14:27 +0000 (18:14 +0200)
src/lua/lua_common.c

index f16c3f1f4daf0884f748bdd79624deb214443615..c2c54dbe1efec39110c795bfbfba88f38dc42e4b 100644 (file)
@@ -186,12 +186,12 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg)
        }
 
        if (additional_path) {
-               rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua;%s",
-                               old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path);
+               rspamd_snprintf (path_buf, sizeof (path_buf), "%s/lua/?.lua;%s/lua/?.lua;%s;%s",
+                               RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path, old_path);
        }
        else {
-               rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua",
-                               old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR);
+               rspamd_snprintf (path_buf, sizeof (path_buf), "%s/lua/?.lua;%s/lua/?.lua;%s",
+                               RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, old_path);
        }
 
        lua_pop (L, 1);