]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: unix: Make sure we can transfer abns sockets on seamless reload.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 6 Jun 2018 16:34:34 +0000 (18:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Jun 2018 12:33:44 +0000 (14:33 +0200)
commitb4dd15bd6fc264cfcbae9b84c0775f25987c0f78
tree8473b45a8fb2fcecd6e0c4ec719db5d322aecef6
parentb1ca58b245e8e1dec098c5c0a83e4c4fd7b77a6c
BUG/MINOR: unix: Make sure we can transfer abns sockets on seamless reload.

When checking if a socket we got from the parent is suitable for a listener,
we just checked that the path matched sockname.tmp, however this is
unsuitable for abns sockets, where we don't have to create a temporary
file and rename it later.
To detect that, check that the first character of the sun_path is 0 for
both, and if so, that &sun_path[1] is the same too.

This should be backported to 1.8.
src/proto_uxst.c