aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-30 13:40:26 +0000
committerWerner Koch <[email protected]>2019-01-30 13:40:26 +0000
commit140fda8c61422ec055c3f7e214cc35706c4320dd (patch)
tree85f923c7a3741b0db87aa8fa6c5990d790d53753 /g10/keylist.c
parentcommon: Add kludge to allow silencing gnupg_exec_tool_stream. (diff)
downloadgnupg-140fda8c61422ec055c3f7e214cc35706c4320dd.tar.gz
gnupg-140fda8c61422ec055c3f7e214cc35706c4320dd.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]>
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 0b8aa88cd..fffd95c31 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -611,6 +611,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;
}