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)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Apr 2018 16:00:58 +0000 (18:00 +0200)
commitd1a1f0aaf0d2f08c60d1e0d32e646439d99f58dc
treeae411d785057683a7b53b6f858fe752b83cca11f
parentb0a0eba9f1f4b4a84f5cd344db069f6f80fafc3e
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