On Thu, Feb 21, 2008 at 05:42:40PM +0100, Guido Günther wrote:
> On Thu, Feb 21, 2008 at 01:52:24PM +0000, Gerrit Pape wrote:
> > works fine without a gpg agent, if it doesn't work with gpg-agent and
> > pinentry-curses, I'd say that's a bug in gpg-agent and/or
> > pinentry-curses, can you please check?

> This doesn't work either:
> 
> $ echo foo |gpg -bsa >sig
> 
> You need a passphrase to unlock the secret key for
> user: "Guido Guenther <[EMAIL PROTECTED]>"
> ...
> 
> gpg: cancelled by user
> gpg: no default secret key: bad passphrase
> gpg: signing failed: bad passphrase
> 
> whereas pinentry-gtk works fine.

Hi Guido, this is from the gpg-agent(1) manpage:

 You should always add the following lines to your .bashrc or whatever
 initialization file is used for all shell invocations:

          GPG_TTY=`tty`
          export GPG_TTY

  It is important that this environment variable always reflects the
  output of the tty command.  For W32 systems this option is not
  required.

I think it should work fine, if you do 'export GPG_TTY=$(tty)'.

Regards, Gerrit.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to