From: David Dombrowsky <6thstreetradio@gmail.com>
To: cygwin@cygwin.com
Subject: Re: pinentry-tty, gpg-agent, and no way to enter password
Date: Wed, 17 Apr 2019 15:07:00 -0000 [thread overview]
Message-ID: <9e985ef3-5c07-b7fe-e1c7-0ff4c07f71aa@gmail.com> (raw)
In-Reply-To: <fe858701-3b25-1610-b04b-2662c10c94e5@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 872 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2019-04-17 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-16 16:30 David Dombrowsky
2019-04-17 15:07 ` David Dombrowsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e985ef3-5c07-b7fe-e1c7-0ff4c07f71aa@gmail.com \
--to=6thstreetradio@gmail.com \
--cc=cygwin@cygwin.com \
--cc=davek@6thstreetradio.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).