On Tue, Aug 30, 2005 at 07:03:05PM +0200, [EMAIL PROTECTED] wrote:

> Synopsis: --use-agent + no agent + successfull operation = failure return 
> value
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: werner
> State-Changed-When: Tue, 30 Aug 2005 19:03:05 +0200
> State-Changed-Why:
> Patch sent to Debian BTS.

The patch sent there doesn't apply to the Debian package; the code
looks different. The one attached here applies, seems to be what you
meant and seems to work.

-- 
Lionel
--- g10/passphrase.c~   2005-08-30 19:56:35.000000000 +0200
+++ g10/passphrase.c    2005-08-30 19:58:27.000000000 +0200
@@ -475,7 +475,7 @@
     if ( !(infostr = read_w32_registry_string(NULL, "Software\\GNU\\GnuPG",
                                               "agentPID")) 
          || *infostr == '0') {
-       log_error( _("gpg-agent is not available in this session\n"));
+       log_info( _("gpg-agent is not available in this session\n"));
        return -1;
     }
     free(infostr);
@@ -522,7 +522,7 @@
       {
         infostr = getenv ( "GPG_AGENT_INFO" );
         if ( !infostr ) {
-          log_error (_("gpg-agent is not available in this session\n"));
+          log_info (_("gpg-agent is not available in this session\n"));
           opt.use_agent = 0;
           return -1;
         }

Reply via email to