26 lines
668 B
Diff
26 lines
668 B
Diff
--- cups-1.2.7/backend/usb-unix.c.direct-usb 2006-11-15 20:28:39.000000000 +0000
|
|
+++ cups-1.2.7/backend/usb-unix.c 2006-11-16 16:23:51.000000000 +0000
|
|
@@ -85,6 +85,8 @@
|
|
*/
|
|
|
|
use_bc = strcasecmp(hostname, "Canon") && !strstr(hostname, "Minolta");
|
|
+ if (use_bc && !strncmp(uri, "usb:/dev/", 9))
|
|
+ use_bc = 0;
|
|
|
|
if ((device_fd = open_device(uri, &use_bc)) == -1)
|
|
{
|
|
@@ -302,12 +304,7 @@
|
|
if (!strncmp(uri, "usb:/dev/", 9))
|
|
#ifdef __linux
|
|
{
|
|
- /*
|
|
- * Do not allow direct devices anymore...
|
|
- */
|
|
-
|
|
- errno = ENODEV;
|
|
- return (-1);
|
|
+ return (open(uri + 4, O_RDWR | O_EXCL));
|
|
}
|
|
else if (!strncmp(uri, "usb://", 6))
|
|
{
|