summaryrefslogtreecommitdiffstats
path: root/pgp.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-06-06 18:38:41 -0700
committerKevin McCarthy <kevin@8t8.us>2017-06-06 18:38:41 -0700
commit74a49627fc283c9ea896a812eacfb562d1f262fe (patch)
treec2c45710c8a0869987147d17d1c71f0d0079a468 /pgp.c
parent701329d930769e827c95c430ba82ec3f27c6446f (diff)
Restore setenv function.
Partially revert fa1192803257, restoring setenv. It turns out we still need the function.
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 f2eabac3..653905f0 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;
}