[git] GnuPG - branch, master, updated. gnupg-2.1.21-22-g8defb21

by NIIBE Yutaka cvs at cvs.gnupg.org
Wed May 31 03:06:21 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  8defb21d34410d000c8b776e0e3a1edd04762638 (commit)
      from  5c33649782bf255af5a55f16eac5e85f059b00bf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8defb21d34410d000c8b776e0e3a1edd04762638
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed May 31 10:05:36 2017 +0900

    scd: Fix error code on failure at usb_init.
    
    * scd/ccid-driver.c (ccid_dev_scan): Return GPG_ERR_ENODEV.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index 1d5e8f2..ce6133f 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -1306,7 +1306,7 @@ ccid_dev_scan (int *idx_max_p, struct ccid_dev_table **t_p)
       if ((rc = libusb_init (NULL)))
         {
           DEBUGOUT_1 ("usb_init failed: %s.\n", libusb_error_name (rc));
-          return gpg_error (GPG_ERR_NOT_FOUND);
+          return gpg_error (GPG_ERR_ENODEV);
         }
       initialized_usb = 1;
     }

-----------------------------------------------------------------------

Summary of changes:
 scd/ccid-driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list