2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Update defaults in visudo after sudoers has been edited so we pick

up locale changes.  The init_defaults() function will now re-init
the sudoers locale.
This commit is contained in:
Todd C. Miller
2016-07-22 10:41:56 -06:00
parent 65579b69eb
commit 256ca993b9
8 changed files with 99 additions and 51 deletions

View File

@@ -1094,16 +1094,16 @@ sudo_ldap_parse_options(LDAP *ld, LDAPMessage *entry)
ep[-1] = '\0';
}
}
set_default(var, val, op);
set_default(var, val, op, false);
} else if (*var == '!') {
/* case !var Boolean False */
do {
var++;
} while (isblank((unsigned char)*var));
set_default(var, NULL, false);
set_default(var, NULL, false, false);
} else {
/* case var Boolean True */
set_default(var, NULL, true);
set_default(var, NULL, true, false);
}
free(copy);
}