summaryrefslogtreecommitdiffstats
path: root/pgp.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-04-18 12:25:17 -0700
committerKevin McCarthy <kevin@8t8.us>2017-04-18 12:25:17 -0700
commit5bd9444eba9bb251a3d025aad2be03089084f916 (patch)
tree81ddaa0f718f681c22fb46bccee4a0d3f68bbe20 /pgp.c
parent5f2fc6ca42a94e36440a8d71eff05977d6ca27ec (diff)
Fix GPG_TTY to be added to envlist. (closes #3931)
Changeset 37209157e33c converted filters to use the envlist. Unfortunately, I missed that pgp.c sets GPG_TTY when using the GnuPG agent. Convert to add GPG_TTY to the envlist too.
Diffstat (limited to 'pgp.c')
-rw-r--r--pgp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pgp.c b/pgp.c
index 6a6f3c91..5b28713c 100644
--- a/pgp.c
+++ b/pgp.c
@@ -114,7 +114,10 @@ int pgp_use_gpg_agent (void)
return 0;
if ((tty = ttyname(0)))
+ {
setenv("GPG_TTY", tty, 0);
+ mutt_envlist_set ("GPG_TTY", tty, 0);
+ }
return 1;
}