aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-08-24 13:25:54 -0700
committerDaniel Mueller <deso@posteo.net>2019-08-24 13:25:54 -0700
commit3cc2e759b5e9bfd239721079354f8254db13a969 (patch)
tree809ebd4757f1ce773690f11c20797067304f016a
parent4f2416011a565e5e579f1f3e6387a7344f89d96d (diff)
downloadnitrocli-topic/extensions.tar.gz
nitrocli-topic/extensions.tar.bz2
Clear environment for gpg-connect-agent process spun offtopic/extensions
-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()?;