mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 GnuPG-bug-id: 6185
This commit is contained in:
parent
e0543f97be
commit
b36e557c5b
4 changed files with 46 additions and 20 deletions
|
@ -6292,9 +6292,12 @@ do_generate_keypair (ctrl_t ctrl, struct para_data_s *para,
|
|||
list_keyblock_direct (ctrl, pub_root, 0, 1,
|
||||
opt.fingerprint || opt.with_fingerprint,
|
||||
1);
|
||||
/* Note that we ignore errors from the list function
|
||||
* because that would only be an additional info. It
|
||||
* has already been remarked that the key has been
|
||||
* created. */
|
||||
}
|
||||
|
||||
|
||||
if (!opt.batch
|
||||
&& (get_parameter_algo (ctrl, para,
|
||||
pKEYTYPE, NULL) == PUBKEY_ALGO_DSA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue