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

Rename sudoers_policy_exec_setup() -> sudoers_policy_store().

It is called even when there is no command to execute.
Also pass in status of whether or not the command was accepted.
This commit is contained in:
Todd C. Miller
2020-10-14 06:33:35 -06:00
parent b0a6e1c1e7
commit bf9d208662
3 changed files with 7 additions and 7 deletions

View File

@@ -760,9 +760,9 @@ bad:
ret = false;
done:
/* Setup execution environment to pass back to front-end. */
/* Store settings to pass back to front-end. */
if (ret != -1) {
if (!sudoers_policy_exec_setup(NewArgv, env_get(), cmnd_umask,
if (!sudoers_policy_store(ret, NewArgv, env_get(), cmnd_umask,
iolog_path, closure))
ret = -1;
}