aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nitrocli/src/pinentry.rs2
1 files changed, 2 insertions, 0 deletions
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()?;