[cups.bugs] [HIGH] STR #4088: libusb_kernel_driver_active may may return unsupported

Antoine Jacoutot ajacoutot at bsdfrog.org
Thu May 17 06:56:46 PDT 2012


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Hi.

On OpenBSD (but I guess other BSDs may have the same issue), the
libusb_kernel_* functions return LIBUSB_ERROR_NOT_SUPPORTED because there
is no implementation for it (also "usblp" is a Linux thing).

The following patch adds a check to open_device() that catches
LIBUSB_ERROR_NOT_SUPPORTED and continues with a warning assuming that the
kernel hasn't attached the device so that libusb is used.
This allows my USB printers to work with version 1.5.3.

Link: http://www.cups.org/str.php?L4088
Version: 1.5.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-backend_usb-libusb_c
Type: application/octet-stream
Size: 586 bytes
Desc: not available
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20120517/f1e1d3d7/attachment.obj>


More information about the cups-devel mailing list