scd: Fix error handling with libusb-compat library.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 4 Nov 2015 12:07:49 +0000 (21:07 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Nov 2016 08:02:49 +0000 (17:02 +0900)
commitd4316d13749bd8662525c2b7c416d39c5d4d8089
tree529db811411234ef9cdf25764fe44f23c034376b
parentaf7245e9a79d11866aa9c40f8f53291f82dd74b5
scd: Fix error handling with libusb-compat library.

* scd/ccid-driver.c (bulk_out): Use LIBUSB_ERRNO_NO_SUCH_DEVICE.

--

With libusb-compat library, the error is different than original
libusb.  (The libusb-compat library is used by Fedora.)

Backport of master commit: 1e94a672efb8bf66f416bc63bf6670e509a21fe5
scd/ccid-driver.c