mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-25 22:19:59 +01:00
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
* passphrase.c (agent_open): Ditto.
This commit is contained in:
parent
6c9c5accd1
commit
16f3d8396e
@ -1,3 +1,8 @@
|
||||
2004-02-17 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
|
||||
* passphrase.c (agent_open): Ditto.
|
||||
|
||||
2004-02-12 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* gpgv.c: Removed g10defs.h.
|
||||
|
@ -82,7 +82,7 @@ start_agent (void)
|
||||
the access to the agent. */
|
||||
|
||||
infostr = force_pipe_server? NULL : getenv ("GPG_AGENT_INFO");
|
||||
if (!infostr)
|
||||
if (!infostr || !*infostr)
|
||||
{
|
||||
const char *pgmname;
|
||||
const char *argv[3];
|
||||
|
@ -504,7 +504,7 @@ agent_open (int *ret_prot)
|
||||
else
|
||||
{
|
||||
infostr = getenv ( "GPG_AGENT_INFO" );
|
||||
if ( !infostr ) {
|
||||
if ( !infostr || !*infostr ) {
|
||||
log_error (_("gpg-agent is not available in this session\n"));
|
||||
opt.use_agent = 0;
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user