2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +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

@@ -1176,16 +1176,16 @@ sudo_sss_parse_options(struct sudo_sss_handle *handle, struct sss_sudo_rule *rul
ep[-1] = '\0';
}
}
set_default(v, val, op);
set_default(v, val, op, false);
} else if (*v == '!') {
/* case !var Boolean False */
do {
v++;
} while (isblank((unsigned char)*v));
set_default(v, NULL, false);
set_default(v, NULL, false, false);
} else {
/* case var Boolean True */
set_default(v, NULL, true);
set_default(v, NULL, true, false);
}
free(copy);
}