]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cfgparse: warn when using user/group when built statically
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 3 Sep 2025 12:45:00 +0000 (14:45 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 3 Sep 2025 12:45:00 +0000 (14:45 +0200)
commit554a15562f61e2a47b79df9c9970e2b4746e85f1
tree4d95df63f6ca19dd680759d9eedcdfd26a292f0a
parent3354719709e6df38a30ab2679aea9d8c84771d2d
MEDIUM: cfgparse: warn when using user/group when built statically

In issue #3013, an user observed a crash at startup of haproxy when
building statically and using the "user" global section.

This is a known problem of the glibc and the linker even warn about
this:

> warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

Let's emit a warning when using user/group in this case.
src/cfgparse-global.c