opnsense-ports/print/cups/files/patch-backend_usb-libusb.c
Franco Fichtner 25297f7447 */*: sync with upstream
Taken from: FreeBSD
2016-03-15 07:37:34 +01:00

11 lines
362 B
C

--- backend/usb-libusb.c.orig 2015-09-15 21:20:02 UTC
+++ backend/usb-libusb.c
@@ -1441,7 +1441,7 @@ open_device(usb_printer_t *printer, /* I
* works without the module attached.
*/
- errcode = libusb_kernel_driver_active(printer->handle, printer->iface);
+ errcode = 0;
if (errcode == 0)
printer->usblp_attached = 0;
else if (errcode == 1)