1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00

gpg: Write ERROR status on delete-key cancellation

* g10/delkey.c (do_delete_key): Write ERROR status code with the error
location "delete_key.secret", when the user cancelled the operation on
Pinentry.
--

I changed the original patch to emit the full gpg_error_t code. -wk
This commit is contained in:
Daiki Ueno 2015-11-09 13:20:13 +09:00 committed by Werner Koch
parent 6d64ef869d
commit b5cd68852d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -201,7 +201,10 @@ do_delete_key( const char *username, int secret, int force, int *r_sec_avail )
firsterr = err;
if (gpg_err_code (err) == GPG_ERR_CANCELED
|| gpg_err_code (err) == GPG_ERR_FULLY_CANCELED)
break;
{
write_status_error ("delete_key.secret", err);
break;
}
}
}