MINOR: sock_unix: report the errno string in binding errors
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Sep 2020 06:35:38 +0000 (08:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Sep 2020 06:35:38 +0000 (08:35 +0200)
commit3cd58bf80555fd22687a11672d5c0dd4c11c2089
tree79646dfd37afb90bf102171c86c67cf0507b161d
parent36722d2274127ef91959296bb5299c8120b16ce7
MINOR: sock_unix: report the errno string in binding errors

Just like with previous patch, let's report UNIX socket binding errors
in plain text. we can now see for example:

  [ALERT] 260/083531 (13365) : Starting frontend f: cannot switch final and temporary UNIX sockets (Operation not permitted) [/tmp/root.sock]
  [ALERT] 260/083640 (13375) : Starting frontend f: cannot change UNIX socket ownership (Operation not permitted) [/tmp/root.sock]
src/sock_unix.c