]> granicus.if.org Git - sudo/commitdiff
Fix pasto; the unrestricted env file was read when we want the restricted one.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 19 Feb 2019 18:03:02 +0000 (11:03 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 19 Feb 2019 18:03:02 +0000 (11:03 -0700)
plugins/sudoers/sudoers.c

index 2cf70f970781eadee215a16be6028d9ff101a0db..d05c9f64e73d0ba7b9db4b30f095af3db44f4253 100644 (file)
@@ -573,7 +573,7 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
 
     /* Insert system-wide environment variables. */
     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);
     }
     if (def_env_file) {