On Sat, Oct 11, 2014 at 04:13:16PM +0300, Sami Liedes wrote:
> --- sudo-1.8.11p1.orig/plugins/sudoers/linux_audit.c
> +++ sudo-1.8.11p1/plugins/sudoers/linux_audit.c
> @@ -57,7 +57,7 @@ linux_audit_open(void)
> au_fd = audit_open();
> if (au_fd == -1) {
> /* Kernel may not have audit support. */
> - if (errno != EINVAL && errno != EPROTONOSUPPORT && errno !=
> EAFNOSUPPORT) {
> + if (errno != EINVAL || errno != EPROTONOSUPPORT || errno !=
> EAFNOSUPPORT) {
> sudo_warn(U_("unable to open audit system"));
> au_fd = AUDIT_NOT_CONFIGURED;
> }
Argh, and my patch is probably wrong too...
Sami
signature.asc
Description: Digital signature

