]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-global: move the state file keywords to their own parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 15:10:19 +0000 (17:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commit9f432f7e33f2c0ca62da8badd2bf32a9809789cf
tree084d24a0ef395070f09d57f1a647cb6d447fc626
parentf6b04058fbc326c80ef46d182b3f8d17a9964af2
CLEANUP: cfgparse-global: move the state file keywords to their own parser

"server-state-base", "server-state-file" and "stats-file" all store a
path which is used to preload some state at boot, and were handled
the same way, so let's move them to cfg_parse_global_state_files()
so as to become discoverable via "-dKcfg".

Like for a few previous commits, the result of the strdup() is now
checked, and the "already specified" warning issues a warning.
src/cfgparse-global.c