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>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitcbb9e59083da8cedd08a059008f8ef2b1bac25a2
tree0246f6f369a23e39d90ac048281ae279d9d23c71
parent4d4159f9c39d318d86e630b8c5cb93e73543da82
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.
src/basic/log.c