another instance of the wrong stamp name
[debian/sudo] / linux_audit.c
index ba87e788517bfa5312907709fe4b9281d56107b3..b4160c99cd8ff66ad19f3bbfaeecf53d4084c890 100644 (file)
@@ -82,9 +82,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);