2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

sudoers_policy_store() -> sudoers_policy_store_result()

This commit is contained in:
Todd C. Miller
2020-10-16 05:56:03 -06:00
parent bf9d208662
commit a5a5cc7f85
3 changed files with 4 additions and 4 deletions

View File

@@ -569,13 +569,13 @@ bad:
* Returns 1 on success and -1 on error.
*/
bool
sudoers_policy_store(bool accepted, char *argv[], char *envp[],
sudoers_policy_store_result(bool accepted, char *argv[], char *envp[],
mode_t cmnd_umask, char *iolog_path, void *v)
{
struct sudoers_exec_args *exec_args = v;
char **command_info;
int info_len = 0;
debug_decl(sudoers_policy_store, SUDOERS_DEBUG_PLUGIN);
debug_decl(sudoers_policy_store_result, SUDOERS_DEBUG_PLUGIN);
if (exec_args == NULL)
debug_return_bool(true); /* nothing to do */

View File

@@ -762,7 +762,7 @@ bad:
done:
/* Store settings to pass back to front-end. */
if (ret != -1) {
if (!sudoers_policy_store(ret, NewArgv, env_get(), cmnd_umask,
if (!sudoers_policy_store_result(ret, NewArgv, env_get(), cmnd_umask,
iolog_path, closure))
ret = -1;
}

View File

@@ -414,7 +414,7 @@ void sudoers_debug_deregister(void);
/* policy.c */
int sudoers_policy_deserialize_info(void *v, char **runas_user, char **runas_group);
bool sudoers_policy_store(bool accepted, char *argv[], char *envp[], mode_t cmnd_umask, char *iolog_path, void *v);
bool sudoers_policy_store_result(bool accepted, char *argv[], char *envp[], mode_t cmnd_umask, char *iolog_path, void *v);
extern const char *path_ldap_conf;
extern const char *path_ldap_secret;