sudo/sudo-1.7.4p4-auditconn.patch
2010-09-29 10:26:02 +02:00

16 lines
511 B
Diff

diff -r 9a328aa25c53 -r a686884684ca linux_audit.c
--- a/linux_audit.c Fri Sep 17 12:13:17 2010 -0400
+++ b/linux_audit.c Tue Sep 21 07:56:36 2010 -0400
@@ -81,9 +81,9 @@
}
*--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);