The arguments are relative to the outline, not relative to the input line. This patch fixes up commit 9e1758efbd68c8b1d27e17e2abe4444e110f3ebe which is 2.2 only. No backport needed. --- src/cfgparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c index 257df05a1..e4489b815 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -1976,7 +1976,7 @@ next_line: if (err & PARSE_ERR_TOOMANY) { ha_alert("parsing [%s:%d]: too many words, truncating at word %d, position %ld: <%s>.\n", - file, linenum, arg, (long)(args[arg-1] - thisline + 1), args[arg-1]); + file, linenum, arg, (long)(args[arg-1] - outline + 1), args[arg-1]); err_code |= ERR_ALERT | ERR_FATAL; fatal++; goto next_line; -- 2.27.0