[PATCH] tty: Improve error handling and reporting

Jürgen Hötzel juergen at hoetzel.info
Sat May 9 10:28:43 CEST 2020


Hi Daniel,

Am Freitag, den 08.05.2020, 16:51 -0400 schrieb Daniel Kahn Gillmor:
> Hi Juergen--
> 
> Thanks for the proposed patch.  Can you give an example where this
> change in failure behavior is concretely useful?
> 

I confused TTYNAME and TTYTYPE:

GPG_TTY=xterm

and tried to decrypt a file. The error message i got was also confusing
(end of file):

juergen at lemmy:~ → gpg -d ~/.password-store/Backup/test.gpg 
...
gpg: public key decryption failed: End of file
gpg: decryption failed: No secret key


using this patch:

juergen at lemmy:~ → gpg -d ~/.password-store/Backup/test.gpg 
...
gpg: public key decryption failed: No such file or directory
gpg: decryption failed: No secret key


Regards,

Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20200509/82a91bb6/attachment.sig>


More information about the Gnupg-devel mailing list