diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-05-04 13:46:20 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-05-04 13:46:20 -0600 |
commit | 81ac4219ebb494294bd90eb4c534626364f1cdac (patch) | |
tree | 397ae0075c7b7f7a026c47f69652171e4dc1678d /plugins/sudoers/policy.c | |
parent | 6039bffcdf1d4af8ad35b5287ec75dee3094ebf8 (diff) | |
download | sudo-81ac4219ebb494294bd90eb4c534626364f1cdac.tar.gz |
Rename force_umask to override_umask and make it private to sudoers.c.
Add getter for policy.c.
Diffstat (limited to 'plugins/sudoers/policy.c')
-rw-r--r-- | plugins/sudoers/policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c index 1487118b9..1f439afd4 100644 --- a/plugins/sudoers/policy.c +++ b/plugins/sudoers/policy.c @@ -946,7 +946,7 @@ sudoers_policy_store_result(bool accepted, char *argv[], char *envp[], if (asprintf(&command_info[info_len++], "umask=0%o", (unsigned int)cmnd_umask) == -1) goto oom; } - if (force_umask) { + if (sudoers_override_umask()) { if ((command_info[info_len++] = strdup("umask_override=true")) == NULL) goto oom; } |