From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15939 invoked by alias); 17 Apr 2019 15:07:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15930 invoked by uid 89); 17 Apr 2019 15:07:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:sk:cpe-74-, H*RU:sk:cpe-74-, HX-Gm-Message-State:APjAAAXl, password X-HELO: mail-qk1-f173.google.com Received: from mail-qk1-f173.google.com (HELO mail-qk1-f173.google.com) (209.85.222.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Apr 2019 15:07:12 +0000 Received: by mail-qk1-f173.google.com with SMTP id y5so14521278qkc.11 for ; Wed, 17 Apr 2019 08:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:from:to:references:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to; bh=eXeJT3KiRBbCJ03rJwENGrquGlWMZjNV5eUWVz1I5DY=; b=P9ikoxeinBmXUOrNVoQ+ZqK5urCjjqBmlQPhjm2hMJAFznbqS/ZvOwxIw0ZRXSv0Au +WEoV7ENLOH6phaYVt+omrIfIu8+XNvAriHH2sfDvmE9TjW19v+lRzHcyRemXZIPIJNj /RfuZP2HgQOR/O1IcNp2ntTeWS/RBWfzMT8c39QVzpeRElm07ypTEi6TpN2780NBphxH l/hXaczB0KbJjKNrnIXpDI0WgaKmfBImy9MveNBLofl60myLgbg46uTmmZVEFSNU3hIw Zg4kOYVoI0sEQVidkhetD63xki1StEORV0D8oNqN/ZsIGLdbbWWWJTH227gjcijJccFu Azog== Return-Path: <6thstreetradio@gmail.com> Received: from [192.168.1.19] (cpe-74-70-21-65.nycap.res.rr.com. [74.70.21.65]) by smtp.gmail.com with ESMTPSA id t35sm37057584qtc.10.2019.04.17.08.07.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 08:07:09 -0700 (PDT) Reply-To: davek@6thstreetradio.org Subject: Re: pinentry-tty, gpg-agent, and no way to enter password From: David Dombrowsky <6thstreetradio@gmail.com> To: cygwin@cygwin.com References: Openpgp: preference=signencrypt Message-ID: <9e985ef3-5c07-b7fe-e1c7-0ff4c07f71aa@gmail.com> Date: Wed, 17 Apr 2019 15:07:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz" X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00121.txt.bz2 --ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz Content-Type: multipart/mixed; boundary="qfek0BcjzMiNL4SgqaWeQxE56dfB5zSTZ"; protected-headers="v1" From: David Dombrowsky <6thstreetradio@gmail.com> Reply-To: davek@6thstreetradio.org To: cygwin@cygwin.com Message-ID: <9e985ef3-5c07-b7fe-e1c7-0ff4c07f71aa@gmail.com> Subject: Re: pinentry-tty, gpg-agent, and no way to enter password References: In-Reply-To: --qfek0BcjzMiNL4SgqaWeQxE56dfB5zSTZ Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 851 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 =3D 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? --=20 David Dombrowsky, Software Engineer davek@6thstreetradio.org | 518-374-3204 https://www.linkedin.com/in/david-dombrowsky-94334415 --qfek0BcjzMiNL4SgqaWeQxE56dfB5zSTZ-- --ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 473 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJct0EbAAoJEAHVpiWjDA5qu+8IAKNOsPG7gXyOCKO69oUmKU4y y3BEXw2nuE/nFXEK3EQISdcXiaCvF72C8cVQIeDK1eIBzjN77DZXVYftjKsirXzG j5WgFJzOaJrjLkez07CDt/k0/6wFfZ2grdqcIeMMk8avN5ZmbeDJxg4+WMFj+DO1 Ji9y/JuSKg0yC7hKLY3itDR4V8oWIpnDXnLoNsTQqSlFsTNMOm/1MsBBF7pWy5bI X+hfeu5KA82py9otBuNl4EpXnaS6CS1+Z+4uZlJcfiQ7g9UkoZ3QgAvldGWhytFa 8dCkj2Q2nYz2vY4F6oqkUEq4JO1L0Wi7Pymv30frPMMt+42hqWe2+rpqNdyGNvA= =5GN9 -----END PGP SIGNATURE----- --ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz--