[PATCH] gnupg-2.0.1 - gpg-agent-info option fixup
Alon Bar-Lev
alon.barlev at gmail.com
Mon Jan 29 23:23:37 CET 2007
[[Previous had incorrect subject]]
Hello,
gnupg-2.01 ignores gpg-agent-info option.
This should fix this.
Best Regards,
Alon Bar-Lev.
---
diff -urNp gnupg-2.0.1.org/g10/call-agent.c gnupg-2.0.1/g10/call-agent.c
--- gnupg-2.0.1.org/g10/call-agent.c 2006-10-04 16:49:27.000000000 +0200
+++ gnupg-2.0.1/g10/call-agent.c 2007-01-29 21:46:57.000000000 +0200
@@ -87,7 +87,10 @@ start_agent (void)
return 0; /* fixme: We need a context for each thread or serialize
the access to the agent. */
- infostr = force_pipe_server? NULL : getenv ("GPG_AGENT_INFO");
+ if (opt.gpg_agent_info != NULL)
+ infostr = opt.gpg_agent_info;
+ else
+ infostr = force_pipe_server? NULL : getenv ("GPG_AGENT_INFO");
if (!infostr || !*infostr)
{
const char *pgmname;
More information about the Gnupg-devel
mailing list