From 6e05345b427859b32248c75c6f179283f6cf0382 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 9 Nov 2021 21:23:45 +0000 Subject: Fix -be macro definition Broken-by: 753739fdef --- src/src/exim.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/exim.c b/src/src/exim.c index a31a8a1b9..133761de9 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -4588,7 +4588,12 @@ needed in transports so we lost the optimisation. */ store_pool = POOL_CONFIG; readconf_rest(); store_pool = old_pool; - store_writeprotect(POOL_CONFIG); + + /* -be can add macro definitions, needing to link to the macro structure + chain. Otherwise, make the memory used for config data readonly. */ + + if (!expansion_test) + store_writeprotect(POOL_CONFIG); #ifdef MEASURE_TIMING report_time_since(&t0, US"readconf_rest (delta)"); -- cgit v1.2.3