aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-30 13:40:26 +0000
committerWerner Koch <[email protected]>2019-02-11 09:40:32 +0000
commit14ea581a1c040b53b0ad4c51136a7948363b1e4b (patch)
treeea07c3328b2d97256eddd445fc2681a63f7bc57d
parentpo: Update Japanese translation. (diff)
downloadgnupg-14ea581a1c040b53b0ad4c51136a7948363b1e4b.tar.gz
gnupg-14ea581a1c040b53b0ad4c51136a7948363b1e4b.zip
gpg: Emit an ERROR status if no key was found with --list-keys.
* g10/keylist.c (list_one): Emit status line. -- Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit 140fda8c61422ec055c3f7e214cc35706c4320dd)
Diffstat (limited to '')
-rw-r--r--g10/keylist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 66b03bb73..262ea8dee 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -610,6 +610,7 @@ list_one (ctrl_t ctrl, strlist_t names, int secret, int mark_secret)
{
log_error ("error reading key: %s\n", gpg_strerror (rc));
getkey_end (ctrl, ctx);
+ write_status_error ("keylist.getkey", rc);
return;
}