Blob Blame History Raw
diff -up sudo-1.8.6p7/plugins/sudoers/ldap.c.unprivileged-list-fix sudo-1.8.6p7/plugins/sudoers/ldap.c
--- sudo-1.8.6p7/plugins/sudoers/ldap.c.unprivileged-list-fix	2016-05-09 15:58:36.581120998 +0200
+++ sudo-1.8.6p7/plugins/sudoers/ldap.c	2016-05-09 15:58:36.588120900 +0200
@@ -2494,12 +2494,12 @@ sudo_ldap_lookup(struct sudo_nss *nss, i
 	    /* Only check the command when listing another user. */
 	    if (user_uid == 0 || list_pw == NULL ||
 		user_uid == list_pw->pw_uid ||
-		sudo_ldap_check_command(ld, entry, NULL)) {
+		sudo_ldap_check_command(ld, entry, NULL) == true) {
 		matched = true;
 		break;
 	    }
 	}
-	if (matched || user_uid == 0) {
+	if (matched == true || user_uid == 0) {
 	    SET(ret, VALIDATE_OK);
 	    CLR(ret, VALIDATE_NOT_OK);
 	    if (def_authenticate) {
diff -up sudo-1.8.6p7/plugins/sudoers/sssd.c.unprivileged-list-fix sudo-1.8.6p7/plugins/sudoers/sssd.c
--- sudo-1.8.6p7/plugins/sudoers/sssd.c.unprivileged-list-fix	2016-05-09 15:58:36.581120998 +0200
+++ sudo-1.8.6p7/plugins/sudoers/sssd.c	2016-05-09 15:58:36.589120886 +0200
@@ -1062,13 +1062,13 @@ sudo_sss_lookup(struct sudo_nss *nss, in
 		/* Only check the command when listing another user. */
 		if (user_uid == 0 || list_pw == NULL ||
 		    user_uid == list_pw->pw_uid ||
-		    sudo_sss_check_command(handle, rule, NULL)) {
+		    sudo_sss_check_command(handle, rule, NULL) == true) {
 		    matched = true;
 		    break;
 		}
 	    }
 	}
-	if (matched || user_uid == 0) {
+	if (matched == true || user_uid == 0) {
 	    SET(ret, VALIDATE_OK);
 	    CLR(ret, VALIDATE_NOT_OK);
 	    if (def_authenticate) {