From 9a448de49a40f076d27e96a9a8f8a9034c08e6a9 Mon Sep 17 00:00:00 2001 From: pdmef Date: Fri, 7 Oct 2005 13:30:51 +0000 Subject: [PATCH 1/1] Rocco Rutte: - dirty fix missing setenv() for Solaris by use of putenv() git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@537 e385b8ad-14ed-0310-8656-cc95a2468c6d --- VERSION.svn | 2 +- pgp.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/VERSION.svn b/VERSION.svn index 1fc4946..ff5f5b6 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -536 +537 diff --git a/pgp.c b/pgp.c index 45f7cf7..5580c69 100644 --- a/pgp.c +++ b/pgp.c @@ -109,8 +109,14 @@ int pgp_use_gpg_agent (void) { if (!option (OPTUSEGPGAGENT) || !getenv ("GPG_AGENT_INFO")) return 0; - if ((tty = ttyname(0))) + if ((tty = ttyname(0))) { + char tmp[SHORT_STRING]; + snprintf (tmp, sizeof (tmp), "GPG_TTY=%s", tty); + putenv (tmp); +#if 0 setenv("GPG_TTY", tty, 0); +#endif + } return 1; } -- 2.20.1