From bcf7e149393ee41af3e092a58dba643c8c091c28 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 26 Mar 2015 14:20:29 +0100 Subject: [PATCH] logger: --stderr and --no-act turn "auto-errors" on Signed-off-by: Ruediger Meier --- misc-utils/logger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 6316a76fc..8908dfcc1 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -914,10 +914,9 @@ int main(int argc, char **argv) ctl.unix_socket_errors = 1; break; case AF_UNIX_ERRORS_AUTO: + ctl.unix_socket_errors = ctl.noact || ctl.stderr_printout; #ifdef HAVE_LIBSYSTEMD - ctl.unix_socket_errors = sd_booted(); -#else - ctl.unix_socket_errors = 0; + ctl.unix_socket_errors |= !!sd_booted(); #endif break; default: