diff options
Diffstat (limited to 'src/update-utmp')
-rw-r--r-- | src/update-utmp/update-utmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index 55fd8ba46e..fd24cdc789 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -125,9 +125,8 @@ static int on_reboot(Context *c) { #if HAVE_AUDIT if (c->audit_fd >= 0) if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_BOOT, "", "systemd-update-utmp", NULL, NULL, NULL, 1) < 0 && - errno != EPERM) { + errno != EPERM) r = log_error_errno(errno, "Failed to send audit message: %m"); - } #endif /* If this call fails it will return 0, which @@ -154,9 +153,8 @@ static int on_shutdown(Context *c) { #if HAVE_AUDIT if (c->audit_fd >= 0) if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_SHUTDOWN, "", "systemd-update-utmp", NULL, NULL, NULL, 1) < 0 && - errno != EPERM) { + errno != EPERM) r = log_error_errno(errno, "Failed to send audit message: %m"); - } #endif q = utmp_put_shutdown(); |