diff options
Diffstat (limited to 'sm')
-rw-r--r-- | sm/ChangeLog | 5 | ||||
-rw-r--r-- | sm/keylist.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog index 7fad93802..09e249dd2 100644 --- a/sm/ChangeLog +++ b/sm/ChangeLog @@ -1,3 +1,8 @@ +2008-05-06 Werner Koch <[email protected]> + + * keylist.c (list_external_keys): Ignore NOT FOUND error code. + This is bug#907. + 2008-04-23 Werner Koch <[email protected]> * certchain.c (find_up): Make correct C89 code. Declare variable diff --git a/sm/keylist.c b/sm/keylist.c index 5f3a88136..870ddf46d 100644 --- a/sm/keylist.c +++ b/sm/keylist.c @@ -1383,6 +1383,9 @@ list_external_keys (ctrl_t ctrl, strlist_t names, estream_t fp, int raw_mode) parm.raw_mode = raw_mode; rc = gpgsm_dirmngr_lookup (ctrl, names, 0, list_external_cb, &parm); + if (gpg_err_code (rc) == GPG_ERR_EOF || rc == -1 + || gpg_err_code (rc) == GPG_ERR_NOT_FOUND) + rc = 0; /* "Not found" is not an error here. */ if (rc) log_error ("listing external keys failed: %s\n", gpg_strerror (rc)); return rc; |