mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Fix pasto; the unrestricted env file was read when we want the restricted one.
This commit is contained in:
parent
c0a12d9d95
commit
f3344b5881
@ -573,7 +573,7 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
|
|||||||
|
|
||||||
/* Insert system-wide environment variables. */
|
/* Insert system-wide environment variables. */
|
||||||
if (def_restricted_env_file) {
|
if (def_restricted_env_file) {
|
||||||
if (!read_env_file(def_env_file, false, true))
|
if (!read_env_file(def_restricted_env_file, false, true))
|
||||||
sudo_warn("%s", def_restricted_env_file);
|
sudo_warn("%s", def_restricted_env_file);
|
||||||
}
|
}
|
||||||
if (def_env_file) {
|
if (def_env_file) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user