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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user