From 8ac95119a37c6014e937959e629ba721a29cb941 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 21 Sep 2010 07:56:36 -0400 Subject: [PATCH] Ignore ECONNREFUSED from audit_log_user_command() which will occur if auditd is not running. --HG-- branch : 1.7 --- linux_audit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux_audit.c b/linux_audit.c index dabf6b33a..16e21af1b 100644 --- a/linux_audit.c +++ b/linux_audit.c @@ -81,9 +81,9 @@ linux_audit_command(char *argv[], int result) } *--cp = '\0'; - /* Log command, ignoring EPERM on error. */ + /* Log command, ignoring ECONNREFUSED on error. */ rc = audit_log_user_command(au_fd, AUDIT_USER_CMD, command, NULL, result); - if (rc <= 0) + if (rc <= 0 && errno != ECONNREFUSED) warning("unable to send audit message"); efree(command); -- 2.40.0