mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 08:45:28 +00:00
display_bound_defaults() stub should return 0, not 1 since it is a count,
not a boolean.
This commit is contained in:
@@ -1150,7 +1150,10 @@ sudo_ldap_display_defaults(nss, pw, lbuf)
|
||||
if (rc == LDAP_SUCCESS && (entry = ldap_first_entry(ld, result))) {
|
||||
bv = ldap_get_values_len(ld, entry, "sudoOption");
|
||||
if (bv != NULL) {
|
||||
prefix = " ";
|
||||
if (lbuf->len == 0 || isspace((unsigned char)lbuf->buf[lbuf->len - 1]))
|
||||
prefix = " ";
|
||||
else
|
||||
prefix = ", ";
|
||||
for (p = bv; *p != NULL; p++) {
|
||||
lbuf_append(lbuf, prefix, (*p)->bv_val, NULL);
|
||||
prefix = ", ";
|
||||
@@ -1173,7 +1176,7 @@ sudo_ldap_display_bound_defaults(nss, pw, lbuf)
|
||||
struct passwd *pw;
|
||||
struct lbuf *lbuf;
|
||||
{
|
||||
return(1);
|
||||
return(0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user