Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Fri, 7 Oct 2005 13:30:51 +0000 (13:30 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Fri, 7 Oct 2005 13:30:51 +0000 (13:30 +0000)
- 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
pgp.c

index 1fc4946..ff5f5b6 100644 (file)
@@ -1 +1 @@
-536
+537
diff --git a/pgp.c b/pgp.c
index 45f7cf7..5580c69 100644 (file)
--- 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;
 }