From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- 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 6316a76..8908dfc 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: -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html