Add error handling.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 30 Jan 2017 03:30:28 +0000 (12:30 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 30 Jan 2017 03:30:28 +0000 (12:30 +0900)
* 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>
src/slots.c

index 810be0b..fc69d15 100644 (file)
@@ -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)