[exim-dev] [Bug 2457] 4.93rc0 FTBFS with HAVE_LOCAL_SCAN=yes

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2457] 4.93rc0 FTBFS with HAVE_LOCAL_SCAN=yes
https://bugs.exim.org/show_bug.cgi?id=2457

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???


--- Comment #2 from Git Commit <git@???> ---
Git commit:
https://git.exim.org/exim.git/commitdiff/d48326c00b228279a957da7f58b48a55f4b7823b

commit d48326c00b228279a957da7f58b48a55f4b7823b
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Oct 19 19:55:39 2019 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Sat Oct 19 20:52:36 2019 +0100


    Fix HAVE_LOCAL_SCAN build.  Bug 2457


    Broken-by: f3ebb786e4
---
 src/src/local_scan.h | 4 +++-
 src/src/string.c     | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)


diff --git a/src/src/local_scan.h b/src/src/local_scan.h
index 235812a..fb87859 100644
--- a/src/src/local_scan.h
+++ b/src/src/local_scan.h
@@ -199,10 +199,12 @@ we can use an inlined implementation in the compiles of
the main Exim files,
with the original name. */

# define string_copy(s) string_copy_function(s)
-# define string_copyn(s, n) string_copyn_function(s, n)
+# define string_copyn(s, n) string_copyn_function((s), (n))
+# define string_copy_taint(s, t) string_copy_taint_function((s), (t))

extern uschar * string_copy_function(const uschar *);
extern uschar * string_copyn_function(const uschar *);
+extern uschar * string_copy_taint_function(const uschar *);
#endif

/* End of local_scan.h */
diff --git a/src/src/string.c b/src/src/string.c
index a954396..ced1ad8 100644
--- a/src/src/string.c
+++ b/src/src/string.c
@@ -411,7 +411,7 @@ return ss;



-#ifdef HAVE_LOCAL_SCAN
+#if defined(HAVE_LOCAL_SCAN) && !defined(MACRO_PREDEF) &&
!defined(COMPILE_UTILITY)
 /*************************************************
 *            Copy and save string                *
 *************************************************/
@@ -432,7 +432,7 @@ As above, but explicitly specifying the result taint status
 */


uschar *
-string_copy_taint(const uschar * s, BOOL tainted)
+string_copy_taint_function(const uschar * s, BOOL tainted)
{
int len = Ustrlen(s) + 1;
uschar *ss = store_get(len, tainted);

--
You are receiving this mail because:
You are on the CC list for the bug.