From 3cf2f3130034e46ff0224cc576626599422e8401 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 4 Nov 2017 12:42:14 +0000 Subject: [Rework] Stop embedding rspamadm scripts into C --- src/rspamadm/fuzzy_convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rspamadm/fuzzy_convert.c') diff --git a/src/rspamadm/fuzzy_convert.c b/src/rspamadm/fuzzy_convert.c index dc15b7e38..a143b89d9 100644 --- a/src/rspamadm/fuzzy_convert.c +++ b/src/rspamadm/fuzzy_convert.c @@ -17,7 +17,6 @@ #include "config.h" #include "rspamadm.h" #include "lua/lua_common.h" -#include "fuzzy_convert.lua.h" static gchar *source_db = NULL; static gchar *redis_host = NULL; @@ -109,6 +108,7 @@ rspamadm_fuzzyconvert (gint argc, gchar **argv) } L = rspamd_lua_init (); + rspamd_lua_set_path (L, NULL, NULL); obj = ucl_object_typed_new (UCL_OBJECT); ucl_object_insert_key (obj, ucl_object_fromstring (source_db), @@ -132,7 +132,7 @@ rspamadm_fuzzyconvert (gint argc, gchar **argv) argc, argv, obj, - rspamadm_script_fuzzy_convert); + "fuzzy_convert"); lua_close (L); ucl_object_unref (obj); -- cgit v1.2.3