]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cfgparse-listen: fix quoting of the condition conflict warning
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 14:37:58 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:22:33 +0000 (09:22 +0200)
commit306ae86fd2fca8689a139546b8842495ecb0813b
treeb1980d1340a2e628a940fc9147bcba8580db4160
parentee99b6444f95625daf3227c9a36919fa81c8fb2c
BUG/MINOR: cfgparse-listen: fix quoting of the condition conflict warning

The 10 places which report the message returned by warnif_cond_conflicts()
use "'%s.\n'" as a format, so the closing quote is emitted after the \n and
ends up alone at the beginning of the next line:

  [WARNING] : parsing [x.cfg:4] : 'acl 'a' will never match ...
  '

Let's just move the quote before the LF and even the trailing '.'.

This may be backported to all supported versions.
src/cfgparse-listen.c