Pick last match in LDAP sudoers too
This commit is contained in:
@@ -2112,7 +2112,7 @@ done:
|
||||
}
|
||||
|
||||
/*
|
||||
* Sort comparison function for ldap_entry_wrapper structures.
|
||||
* Comparison function for ldap_entry_wrapper structures, descending order.
|
||||
*/
|
||||
static int
|
||||
ldap_entry_compare(const void *a, const void *b)
|
||||
@@ -2120,8 +2120,8 @@ ldap_entry_compare(const void *a, const void *b)
|
||||
const struct ldap_entry_wrapper *aw = a;
|
||||
const struct ldap_entry_wrapper *bw = b;
|
||||
|
||||
return(aw->order < bw->order ? -1 :
|
||||
(aw->order > bw->order ? 1 : 0));
|
||||
return(bw->order < aw->order ? -1 :
|
||||
(bw->order > aw->order ? 1 : 0));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user