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