mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01: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:
parent
6d64ef869d
commit
b5cd68852d
@ -201,7 +201,10 @@ do_delete_key( const char *username, int secret, int force, int *r_sec_avail )
|
|||||||
firsterr = err;
|
firsterr = err;
|
||||||
if (gpg_err_code (err) == GPG_ERR_CANCELED
|
if (gpg_err_code (err) == GPG_ERR_CANCELED
|
||||||
|| gpg_err_code (err) == GPG_ERR_FULLY_CANCELED)
|
|| gpg_err_code (err) == GPG_ERR_FULLY_CANCELED)
|
||||||
break;
|
{
|
||||||
|
write_status_error ("delete_key.secret", err);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user