From: pdmef Date: Fri, 7 Oct 2005 13:30:51 +0000 (+0000) Subject: Rocco Rutte: X-Git-Url: http://git.madism.org/?a=commitdiff_plain;ds=inline;h=9a448de49a40f076d27e96a9a8f8a9034c08e6a9;p=apps%2Fmadmutt.git 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 --- 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; }