[PATCH] Check for GPG_TTY as well as DISPLAY.

Ben Kibbey bjk at luxsci.net
Sun Sep 4 01:06:36 CEST 2016

On Wed, Oct 21, 2015 at 09:15:09PM -0400, Ben Kibbey wrote:
> On Wed, Oct 21, 2015 at 06:07:20PM -0400, Ben Kibbey wrote:
> > which would keep the original behavior but not work for my case as the
> > foreground server process would catch the pinentry rather than the
> > client on another tty.
> > 
> > Would that be OK to push after keeping the isatty() test order?
> Nevermind. Pushing the above modification wouldn't make a difference. I
> got what I needed to work working. Sorry about the noise.

It turns out I need this ability again. Attached is a revised patch with
better readability. Since gpg-agent will always use the DISPLAY when
set, and the user would need to replace/set GPG_TTY in the current
environment, I don't see how it can break anything.


Ben Kibbey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Check-for-GPG_TTY-when-DISPLAY-is-unset.patch
Type: text/x-diff
Size: 6459 bytes
Desc: not available
URL: </pipermail/attachments/20160903/ca19a390/attachment-0001.patch>

More information about the Gnupg-devel mailing list