chiark / gitweb /
basic/log: always ignore errno from the enviornment (#8841)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Apr 2018 16:00:58 +0000 (18:00 +0200)
committerSven Eden <yamakuzure@gmx.net>
Thu, 28 Jun 2018 07:24:07 +0000 (09:24 +0200)
commit84343de19cf997ed0b8288ec1ff5b1d33c265993
tree254a5a2eaa59349dbc4f355d9de82db2b2b26d1e
parent91b7eae095db9442e5473c626175185cf448ba51
basic/log: always ignore errno from the enviornment (#8841)

This extends the change done in b29f6480ec to other logging functions.

This actually fixes some bugs in callers of log_struct(), for example
config_parse_alias() called 'return log_syntax(..., 0, ...)' which could result
in a bogus non-zero return value.

Calls to log_object() and log_format_iovec() — which is only used by
server_driver_message() — appear correct.

(cherry picked from commit d1a1f0aaf0d2f08c60d1e0d32e646439d99f58dc)
src/basic/log.c