]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-global: move "uid", "gid", "user" and "group" to its own parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 14:22:30 +0000 (16:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commit6b696ad637819c131bc6e4e79a42a497013137bf
tree9abc4d29f1cf21fd5cc09cbedde93825a3d523cf
parent27ebb384b3bb735406fa5b7851e649fa3e79e3b2
CLEANUP: cfgparse-global: move "uid", "gid", "user" and "group" to its own parser

These 4 keywords all end up setting global.{uid,gid}, either from a
number or by resolving a system user or group name, so they were moved
together to a new cfg_parse_global_uid_gid() function and registered in
cfg_kws so as to become discoverable via "-dKcfg". The parser continues
to use ha_alert() / ha_warning() since keyword parsers can normally only
return a single message (e.g. "statically built libc" could be emitted
before the rest).
src/cfgparse-global.c