Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/ekeyd/files: ekeyd-1.1.3-libusb_compat.patch
Date: Wed, 29 Sep 2010 23:54:49
Message-Id: 20100929235446.E9F8920054@flycatcher.gentoo.org
1 flameeyes 10/09/29 23:54:46
2
3 Added: ekeyd-1.1.3-libusb_compat.patch
4 Log:
5 Add patch to that worksaround a libusb-compat bug and allows using the virtual with ekeyd-ulusbd.
6
7 (Portage version: 2.2_rc88/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-crypt/ekeyd/files/ekeyd-1.1.3-libusb_compat.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/files/ekeyd-1.1.3-libusb_compat.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/files/ekeyd-1.1.3-libusb_compat.patch?rev=1.1&content-type=text/plain
14
15 Index: ekeyd-1.1.3-libusb_compat.patch
16 ===================================================================
17 Index: ekeyd-1.1.3/daemon/ekey-ulusbd.c
18 ===================================================================
19 --- ekeyd-1.1.3.orig/daemon/ekey-ulusbd.c
20 +++ ekeyd-1.1.3/daemon/ekey-ulusbd.c
21 @@ -100,7 +100,8 @@ find_usb_device(char *busmatch, char *de
22
23 #if LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
24 if ((r = usb_detach_kernel_driver_np(devh, EKEY_IFACE)) != 0) {
25 - if (r != -ENODATA) {
26 + /* libusb_compat-0.1.3 mistakenly translate ENODATA to ENOENT */
27 + if (r != -ENODATA && r != -ENOENT) {
28 fprintf(stderr,
29 "Unable to detach Entropy Key at %s/%s from kernel\n",
30 busmatch, devmatch);