diff options
author | Tomas Korbar <tkorbar@redhat.com> | 2020-04-24 16:01:59 +0200 |
---|---|---|
committer | Tomas Korbar <tkorbar@redhat.com> | 2020-04-24 16:01:59 +0200 |
commit | 8236067cb6a024bc1588826b6ad4fce788ba9909 (patch) | |
tree | f7bc57e3c490017d48bf323dd3312851afbb04ee /opendkim.lua_load_dump.patch | |
parent | 800546f75d09cede72c89de4a937986140b25966 (diff) | |
download | opendkim_EL6-8236067cb6a024bc1588826b6ad4fce788ba9909.tar.gz |
Rebuilt with lua support
Credit: Breno Brand Fernandes brandfbb@gmail.com
Diffstat (limited to 'opendkim.lua_load_dump.patch')
-rw-r--r-- | opendkim.lua_load_dump.patch | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/opendkim.lua_load_dump.patch b/opendkim.lua_load_dump.patch new file mode 100644 index 0000000..d5ba92d --- /dev/null +++ b/opendkim.lua_load_dump.patch @@ -0,0 +1,107 @@ +diff --git a/miltertest/miltertest.c b/miltertest/miltertest.c +index 04e50c0..c96d9e3 100644 +--- a/miltertest/miltertest.c ++++ b/miltertest/miltertest.c +@@ -4168,7 +4168,7 @@ main(int argc, char **argv) + script == NULL ? "(stdin)" : script, NULL)) + #else /* LUA_VERSION_NUM == 502 */ + switch (lua_load(l, mt_lua_reader, (void *) &io, +- script == NULL ? "(stdin)" : script)) ++ script == NULL ? "(stdin)" : script, NULL)) + #endif /* LUA_VERSION_NUM == 502 */ + { + case 0: +diff --git a/opendkim/opendkim-lua.c b/opendkim/opendkim-lua.c +index 4720862..e265ba9 100644 +--- a/opendkim/opendkim-lua.c ++++ b/opendkim/opendkim-lua.c +@@ -535,7 +535,7 @@ dkimf_lua_setup_hook(void *ctx, const char *script, size_t scriptlen, + # if LUA_VERSION_NUM == 502 + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # else /* LUA_VERSION_NUM == 502 */ +- switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) ++ switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # endif /* LUA_VERSION_NUM == 502 */ + { + case 0: +@@ -564,7 +564,7 @@ dkimf_lua_setup_hook(void *ctx, const char *script, size_t scriptlen, + io.lua_io_len = 0; + io.lua_io_alloc = 0; + +- if (lua_dump(l, dkimf_lua_writer, &io) == 0) ++ if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) + { + *keep = (void *) io.lua_io_script; + *funclen = io.lua_io_len; +@@ -680,7 +680,7 @@ dkimf_lua_screen_hook(void *ctx, const char *script, size_t scriptlen, + # if LUA_VERSION_NUM == 502 + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # else /* LUA_VERSION_NUM == 502 */ +- switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) ++ switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # endif /* LUA_VERSION_NUM == 502 */ + { + case 0: +@@ -709,7 +709,7 @@ dkimf_lua_screen_hook(void *ctx, const char *script, size_t scriptlen, + io.lua_io_len = 0; + io.lua_io_alloc = 0; + +- if (lua_dump(l, dkimf_lua_writer, &io) == 0) ++ if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) + { + *keep = (void *) io.lua_io_script; + *funclen = io.lua_io_len; +@@ -917,7 +917,7 @@ dkimf_lua_stats_hook(void *ctx, const char *script, size_t scriptlen, + # if LUA_VERSION_NUM == 502 + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # else /* LUA_VERSION_NUM == 502 */ +- switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) ++ switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # endif /* LUA_VERSION_NUM == 502 */ + { + case 0: +@@ -946,7 +946,7 @@ dkimf_lua_stats_hook(void *ctx, const char *script, size_t scriptlen, + io.lua_io_len = 0; + io.lua_io_alloc = 0; + +- if (lua_dump(l, dkimf_lua_writer, &io) == 0) ++ if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) + { + *keep = (void *) io.lua_io_script; + *funclen = io.lua_io_len; +@@ -1154,7 +1154,7 @@ dkimf_lua_final_hook(void *ctx, const char *script, size_t scriptlen, + # if LUA_VERSION_NUM == 502 + switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # else /* LUA_VERSION_NUM == 502 */ +- switch (lua_load(l, dkimf_lua_reader, (void *) &io, name)) ++ switch (lua_load(l, dkimf_lua_reader, (void *) &io, name, NULL)) + # endif /* LUA_VERSION_NUM == 502 */ + { + case 0: +@@ -1183,7 +1183,7 @@ dkimf_lua_final_hook(void *ctx, const char *script, size_t scriptlen, + io.lua_io_len = 0; + io.lua_io_alloc = 0; + +- if (lua_dump(l, dkimf_lua_writer, &io) == 0) ++ if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) + { + *keep = (void *) io.lua_io_script; + *funclen = io.lua_io_len; +@@ -1255,7 +1255,7 @@ dkimf_lua_db_hook(const char *script, size_t scriptlen, const char *query, + # if LUA_VERSION_NUM == 502 + switch (lua_load(l, dkimf_lua_reader, (void *) &io, script, NULL)) + # else /* LUA_VERSION_NUM == 502 */ +- switch (lua_load(l, dkimf_lua_reader, (void *) &io, script)) ++ switch (lua_load(l, dkimf_lua_reader, (void *) &io, script, NULL)) + # endif /* LUA_VERSION_NUM == 502 */ + { + case 0: +@@ -1284,7 +1284,7 @@ dkimf_lua_db_hook(const char *script, size_t scriptlen, const char *query, + io.lua_io_len = 0; + io.lua_io_alloc = 0; + +- if (lua_dump(l, dkimf_lua_writer, &io) == 0) ++ if (lua_dump(l, dkimf_lua_writer, &io, NULL) == 0) + { + *keep = (void *) io.lua_io_script; + *funclen = io.lua_io_len; |