Home GnuPG
Diffusion GnuPG b36e557c5b05

gpg: Terminate key listing on output write error.

Description

gpg: Terminate key listing on output write error.

* g10/keylist.c (list_all): Handle error from list_keyblock.
(list_one): Ditto.
(locate_one): Ditto.
(list_keyblock): Detect write error, print, and return it.
(list_keyblock_direct): Return error from list_keyblock.
* g10/import.c (import_one_real): Break on listing error.

Test by using

gpg -k >/dev/full

Details