From: Todd C. Miller Date: Fri, 15 Aug 2014 21:56:25 +0000 (-0600) Subject: Fix return value when kernel has no audit support. X-Git-Tag: SUDO_1_8_11^2~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb82e823f44e5723e0fdded646dcffadc67795f5;p=sudo Fix return value when kernel has no audit support. --- diff --git a/plugins/sudoers/linux_audit.c b/plugins/sudoers/linux_audit.c index ae797aac2..2befd079b 100644 --- a/plugins/sudoers/linux_audit.c +++ b/plugins/sudoers/linux_audit.c @@ -59,7 +59,7 @@ linux_audit_open(void) /* Kernel may not have audit support. */ if (errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT) { sudo_warn(U_("unable to open audit system")); - au_fd == AUDIT_NOT_CONFIGURED; + au_fd = AUDIT_NOT_CONFIGURED; } } else { (void)fcntl(au_fd, F_SETFD, FD_CLOEXEC);