[pkg-gnupg-maint] Bug#847380: Extra information

David Buckley isreal-847380-at-bugs.debian.org at bucko.me.uk
Wed Dec 7 18:43:52 UTC 2016


I set the pinentry program to a strace of pinentry-tty and got this:

write(1, "Please enter the passphrase to u"..., 207) = 207
ioctl(0, TCGETS, 0x7fff61ea78c0)        = -1 ENOTTY (Inappropriate ioctl
for device)
write(2, "cbreak failure, exiting\n", 24cbreak failure, exiting
) = 24

So it looks like it tries to treat stdin directly as a terminal, which
obviously fails -- it's an anonymous pipe.

pinentry should probably test stdin before it assumes it's a terminal,
then either crash with a helpful message or do the thing gpg 1 did for
pipelines.

-- 
David Buckley



More information about the pkg-gnupg-maint mailing list