summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-01-29 21:31:27 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2023-01-29 21:31:27 +0000
commit9ee30919f807678b0bc9f675dcfa73225b486574 (patch)
tree7e6daa84f9978b55ee367549f0d773e8a203bfbc /src
parent36afd696f0000b50e9c14ad61c96b46fb3d68cd0 (diff)
downloadexim4-9ee30919f807678b0bc9f675dcfa73225b486574.tar.gz
Debug: include variable content as expansion interim item
Diffstat (limited to 'src')
-rw-r--r--src/src/expand.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index 2949579c5..10f009ce2 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -4733,6 +4733,7 @@ while (*s)
reset in the middle of the buffer will make it inaccessible. */
len = Ustrlen(value);
+ DEBUG(D_expand) debug_expansion_interim(US"value", value, len, !!(flags & ESI_SKIPPING));
if (!yield && newsize != 0)
{
yield = g;
@@ -4751,7 +4752,10 @@ while (*s)
int n;
s = read_cnumber(&n, s);
if (n >= 0 && n <= expand_nmax)
+ {
+ DEBUG(D_expand) debug_expansion_interim(US"value", expand_nstring[n], expand_nlength[n], !!(flags & ESI_SKIPPING));
yield = string_catn(yield, expand_nstring[n], expand_nlength[n]);
+ }
continue;
}
@@ -4776,7 +4780,10 @@ while (*s)
goto EXPAND_FAILED;
}
if (n >= 0 && n <= expand_nmax)
+ {
+ DEBUG(D_expand) debug_expansion_interim(US"value", expand_nstring[n], expand_nlength[n], !!(flags & ESI_SKIPPING));
yield = string_catn(yield, expand_nstring[n], expand_nlength[n]);
+ }
continue;
}