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