]> granicus.if.org Git - sudo/commitdiff
Fix return value when kernel has no audit support.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Aug 2014 21:56:25 +0000 (15:56 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Aug 2014 21:56:25 +0000 (15:56 -0600)
plugins/sudoers/linux_audit.c

index ae797aac2c0740b04dd8bf4f071f9c249ca0fe76..2befd079be6f4914944afb2d07acfdb327da2fda 100644 (file)
@@ -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);