summaryrefslogtreecommitdiffstats
path: root/pgp.c
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2017-04-30 12:25:08 -0700
committerVincent Lefevre <vincent@vinc17.net>2017-04-30 12:25:08 -0700
commit8bcb1cbdea4b28f17ef6cd8cc2379dcbde47db4c (patch)
tree367dc062e4e2e29b20c3cce74e91700c0ef5fdce /pgp.c
parentfe777f9348b1801d9ebc0d587f418eb523539965 (diff)
Convert all exec calls to use mutt_envlist(), remove setenv function.
The documentation implies that all children processes will be affected by the setenv command, so convert all the exec calls to use mutt_envlist(). The setenv("GPG_TTY") call is no longer needed so remove it. With that removed, there are no other setenv calls in mutt, so remove the autoconf check and replacement function.
Diffstat (limited to 'pgp.c')
-rw-r--r--pgp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/pgp.c b/pgp.c
index 653905f0..f2eabac3 100644
--- a/pgp.c
+++ b/pgp.c
@@ -114,10 +114,7 @@ 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;
}