]> git.pld-linux.org Git - packages/exim.git/blobdiff - localscan_dlopen_exim_4.20_or_better.patch
- rel 3; upstream fixes
[packages/exim.git] / localscan_dlopen_exim_4.20_or_better.patch
index 10339dd94c3a825b9b1b212c560755d617f2bc0b..d1d223a2207210c26599d4f314bd97fc241c0880 100644 (file)
@@ -1,16 +1,19 @@
-Description: Allow one to use and switch between different local_scan functions
- without recompiling exim.
- http://marc.merlins.org/linux/exim/files/sa-exim-current/ Original patch from
- David Woodhouse, modified first by Derrick 'dman' Hudson and then by Marc
- MERLIN for SA-Exim and minor/major API version tracking
-Author: David Woodhouse, Derrick 'dman' Hudson, Marc MERLIN
-Origin: other, http://marc.merlins.org/linux/exim/files/sa-exim-current/
-Forwarded: no
-Last-Update: 2019-10-20
-
---- a/src/EDITME
-+++ b/src/EDITME
-@@ -868,6 +868,21 @@ HEADERS_CHARSET="ISO-8859-1"
+diff -urN exim-4.94.org/src/config.h.defaults exim-4.94/src/config.h.defaults
+--- exim-4.94.org/src/config.h.defaults        2020-05-30 22:35:38.000000000 +0200
++++ exim-4.94/src/config.h.defaults    2020-11-27 08:10:34.967732017 +0100
+@@ -33,6 +33,8 @@
+ #define AUTH_VARS                     3
++#define DLOPEN_LOCAL_SCAN
++
+ #define BIN_DIRECTORY
+ #define CONFIGURE_FILE
+diff -urN exim-4.94.org/src/EDITME exim-4.94/src/EDITME
+--- exim-4.94.org/src/EDITME   2020-11-27 08:10:27.727507700 +0100
++++ exim-4.94/src/EDITME       2020-11-27 08:10:34.967732017 +0100
+@@ -878,6 +878,21 @@
  
  
  #------------------------------------------------------------------------------
@@ -32,20 +35,10 @@ Last-Update: 2019-10-20
  # The default distribution of Exim contains only the plain text form of the
  # documentation. Other forms are available separately. If you want to install
  # the documentation in "info" format, first fetch the Texinfo documentation
---- a/src/config.h.defaults
-+++ b/src/config.h.defaults
-@@ -33,6 +33,8 @@ Do not put spaces between # and the 'def
- #define AUTH_VARS                     3
-+#define DLOPEN_LOCAL_SCAN
-+
- #define BIN_DIRECTORY
- #define CONFIGURE_FILE
---- a/src/globals.c
-+++ b/src/globals.c
-@@ -115,6 +115,10 @@ int     dsn_ret                = 0;
+diff -urN exim-4.94.org/src/globals.c exim-4.94/src/globals.c
+--- exim-4.94.org/src/globals.c        2020-11-27 08:10:27.714173954 +0100
++++ exim-4.94/src/globals.c    2020-11-27 08:10:34.967732017 +0100
+@@ -117,6 +117,10 @@
  const pcre  *regex_DSN         = NULL;
  uschar *dsn_advertise_hosts    = NULL;
  
@@ -56,9 +49,10 @@ Last-Update: 2019-10-20
  #ifndef DISABLE_TLS
  BOOL    gnutls_compat_mode     = FALSE;
  BOOL    gnutls_allow_auto_pkcs11 = FALSE;
---- a/src/globals.h
-+++ b/src/globals.h
-@@ -144,6 +144,9 @@ extern int      dsn_ret;               /
+diff -urN exim-4.94.org/src/globals.h exim-4.94/src/globals.h
+--- exim-4.94.org/src/globals.h        2020-11-27 08:10:27.714173954 +0100
++++ exim-4.94/src/globals.h    2020-11-27 08:10:34.967732017 +0100
+@@ -148,6 +148,9 @@
  extern const pcre  *regex_DSN;         /* For recognizing DSN settings */
  extern uschar  *dsn_advertise_hosts;   /* host for which TLS is advertised */
  
@@ -68,8 +62,9 @@ Last-Update: 2019-10-20
  /* Input-reading functions for messages, so we can use special ones for
  incoming TCP/IP. */
  
---- a/src/local_scan.c
-+++ b/src/local_scan.c
+diff -urN exim-4.94.org/src/local_scan.c exim-4.94/src/local_scan.c
+--- exim-4.94.org/src/local_scan.c     2020-05-30 22:35:38.000000000 +0200
++++ exim-4.94/src/local_scan.c 2020-11-27 08:10:34.967732017 +0100
 @@ -6,22 +6,6 @@
  /* See the file NOTICE for conditions of use and distribution. */
  
@@ -93,7 +88,7 @@ Last-Update: 2019-10-20
  /* This is the only Exim header that you should include. The effect of
  including any other Exim header is not defined, and may change from release to
  release. Use only the documented interface! */
-@@ -29,37 +13,130 @@ release. Use only the documented interfa
+@@ -29,37 +13,130 @@
  #include "local_scan.h"
  
  
@@ -249,9 +244,10 @@ Last-Update: 2019-10-20
 +
 +
  /* End of local_scan.c */
---- a/src/local_scan.h
-+++ b/src/local_scan.h
-@@ -17,6 +17,7 @@ settings, and the store functions. */
+diff -urN exim-4.94.org/src/local_scan.h exim-4.94/src/local_scan.h
+--- exim-4.94.org/src/local_scan.h     2020-05-30 22:35:38.000000000 +0200
++++ exim-4.94/src/local_scan.h 2020-11-27 08:10:34.967732017 +0100
+@@ -27,6 +27,7 @@
  
  #include <stdarg.h>
  #include <sys/types.h>
@@ -259,7 +255,7 @@ Last-Update: 2019-10-20
  #include "config.h"
  #include "mytypes.h"
  #include "store.h"
-@@ -149,6 +150,9 @@ extern header_line *header_list;       /
+@@ -166,6 +167,9 @@
  extern BOOL    host_checking;          /* Set when checking a host */
  extern uschar *interface_address;      /* Interface for incoming call */
  extern int     interface_port;         /* Port number for incoming call */
@@ -269,16 +265,17 @@ Last-Update: 2019-10-20
  extern uschar *message_id;             /* Internal id of message being handled */
  extern uschar *received_protocol;      /* Name of incoming protocol */
  extern int     recipients_count;       /* Number of recipients */
-@@ -207,4 +211,6 @@ extern uschar * string_copyn_function(co
- extern uschar * string_copy_taint_function(const uschar *, BOOL tainted);
+@@ -235,4 +239,6 @@
+ extern pid_t    child_open_function(uschar **, uschar **, int, int *, int *, BOOL, const uschar *);
  #endif
  
 +#pragma GCC visibility pop
 +
  /* End of local_scan.h */
---- a/src/readconf.c
-+++ b/src/readconf.c
-@@ -203,6 +203,9 @@ static optionlist optionlist_config[] =
+diff -urN exim-4.94.org/src/readconf.c exim-4.94/src/readconf.c
+--- exim-4.94.org/src/readconf.c       2020-11-27 08:10:27.704173644 +0100
++++ exim-4.94/src/readconf.c   2020-11-27 08:10:34.967732017 +0100
+@@ -205,6 +205,9 @@
    { "local_from_prefix",        opt_stringptr,   {&local_from_prefix} },
    { "local_from_suffix",        opt_stringptr,   {&local_from_suffix} },
    { "local_interfaces",         opt_stringptr,   {&local_interfaces} },
@@ -288,9 +285,10 @@ Last-Update: 2019-10-20
  #ifdef HAVE_LOCAL_SCAN
    { "local_scan_timeout",       opt_time,        {&local_scan_timeout} },
  #endif
---- a/src/string.c
-+++ b/src/string.c
-@@ -413,6 +413,7 @@ return ss;
+diff -urN exim-4.94.org/src/string.c exim-4.94/src/string.c
+--- exim-4.94.org/src/string.c 2020-11-27 08:10:27.704173644 +0100
++++ exim-4.94/src/string.c     2020-11-27 08:10:34.971065453 +0100
+@@ -418,6 +418,7 @@
  
  #if (defined(HAVE_LOCAL_SCAN) || defined(EXPAND_DLFUNC)) \
        && !defined(MACRO_PREDEF) && !defined(COMPILE_UTILITY)
@@ -298,7 +296,7 @@ Last-Update: 2019-10-20
  /*************************************************
  *            Copy and save string                *
  *************************************************/
-@@ -465,6 +466,7 @@ Ustrncpy(ss, s, n);
+@@ -470,6 +471,7 @@
  ss[n] = 0;
  return ss;
  }
@@ -306,4 +304,3 @@ Last-Update: 2019-10-20
  #endif
  
  
-
This page took 0.03486 seconds and 4 git commands to generate.