Blame SOURCES/sudo-1.8.6p7-unprivileged-list-fix.patch

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