summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.c7
1 files changed, 6 insertions, 1 deletions
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)");