summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-11-09 21:23:45 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2021-11-09 21:23:45 +0000
commit6e05345b427859b32248c75c6f179283f6cf0382 (patch)
tree1530fc95a2952365854a51716e9528ee2c9733b0 /src
parent6db92eab5917e515c83fd773dad6111177a0207f (diff)
Fix -be macro definition
Broken-by: 753739fdef
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)");