pinentry-tty, gpg-agent, and no way to enter password

David Dombrowsky 6thstreetradio@gmail.com
Wed Apr 17 15:07:00 GMT 2019


On 4/16/19 12:29 PM, David Dombrowsky wrote:
> From there I was able to cobble together a solution using a locally
> patched version of pinentry-curses.  Somewhere along the line, that
> stopped working.

I put debug prints in pinentry-tty, and it is opening the correct tty.
However, running the command to set the terminal into the right mode
will fail.  If I comment that out, something interesting happens:

tty/pinentry-tty.c
356       c = fgetc (ttyfi);
357       switch (c)

This call to `fgetc`, while it points to a FILE handle opened to the
correct tty, will read NOTHING.  My session is on /dev/pty0, but a
subprocess that opens that terminal for reading neither fail, nor read
anything.

Any ideas?

-- 
David Dombrowsky, Software Engineer
davek@6thstreetradio.org | 518-374-3204
https://www.linkedin.com/in/david-dombrowsky-94334415

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190417/5755d04c/attachment.sig>


More information about the Cygwin mailing list