From: Christian Poveda Date: Thu, 29 Aug 2019 09:07:20 +0000 (-0500) Subject: Exclude TERM env var by default X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9c54368ccaf4d8a4f67c2df0efa428a6067f0ed3;p=rust.git Exclude TERM env var by default --- diff --git a/src/shims/env.rs b/src/shims/env.rs index 5a5dffa1d09..d0b5abbaf18 100644 --- a/src/shims/env.rs +++ b/src/shims/env.rs @@ -15,8 +15,10 @@ pub struct EnvVars { impl EnvVars { pub(crate) fn init<'mir, 'tcx>( ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>, - excluded_env_vars: Vec, + mut excluded_env_vars: Vec, ) { + // Exclude TERM var to avoid calls to the file system + excluded_env_vars.push("TERM".to_owned()); if ecx.machine.communicate { for (name, value) in std::env::vars() { if !excluded_env_vars.contains(&name) {