فهرست منبع

Add error handling.

* src/slots.c (slots_update_slot): Ignore GPG_ERR_ENODEV too.

--
In GnuPG 2.1, scdamon can return GPG_ERR_ENODEV.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
NIIBE Yutaka 8 سال پیش
والد
کامیت
10a19467bc
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/slots.c

+ 2 - 1
src/slots.c

@@ -439,7 +439,8 @@ slots_update_slot (slot_iterator_t id)
      here.  */
   if (gpg_err_code (err) == GPG_ERR_CARD_REMOVED
       || gpg_err_code (err) == GPG_ERR_CARD_NOT_PRESENT
-      || gpg_err_code (err) == GPG_ERR_CARD)
+      || gpg_err_code (err) == GPG_ERR_CARD
+      || gpg_err_code (err) == GPG_ERR_ENODEV)
     /* Nothing to do.  */
     err = 0;
   else if (err == 0)