From 3cc2e759b5e9bfd239721079354f8254db13a969 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 24 Aug 2019 13:25:54 -0700 Subject: Clear environment for gpg-connect-agent process spun off --- nitrocli/src/pinentry.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nitrocli/src/pinentry.rs b/nitrocli/src/pinentry.rs index af28e2d..641aeae 100644 --- a/nitrocli/src/pinentry.rs +++ b/nitrocli/src/pinentry.rs @@ -262,6 +262,7 @@ where // cause gpg-connect-agent to exit with a non-zero error code, we have // to evaluate the output to determine success/failure. let output = process::Command::new("gpg-connect-agent") + .env_clear() .arg(command) .arg("/bye") .output() @@ -329,6 +330,7 @@ where if let Some(cache_id) = entry.cache_id() { let command = format!("CLEAR_PASSPHRASE {}", cache_id); let output = process::Command::new("gpg-connect-agent") + .env_clear() .arg(command) .arg("/bye") .output()?; -- cgit v1.2.1