]> git.pld-linux.org Git - packages/cups.git/blame - cups-direct_usb.patch
- release 4
[packages/cups.git] / cups-direct_usb.patch
CommitLineData
6b3ad991
AM
1--- cups-1.2.8/backend/usb-unix.c.direct-usb 2007-02-05 20:25:50.000000000 +0000
2+++ cups-1.2.8/backend/usb-unix.c 2007-02-14 17:44:40.000000000 +0000
3@@ -87,6 +87,8 @@
30306cca
JR
4 strcasecmp(hostname, "Canon") &&
5 strncasecmp(hostname, "Konica", 6) &&
6 strncasecmp(hostname, "Minolta", 7);
6b3ad991
AM
7+ if (use_bc && !strncmp(uri, "usb:/dev/", 9))
8+ use_bc = 0;
9 #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */
10
11 if ((device_fd = open_device(uri, &use_bc)) == -1)
12@@ -304,12 +306,7 @@
13 if (!strncmp(uri, "usb:/dev/", 9))
14 #ifdef __linux
15 {
16- /*
17- * Do not allow direct devices anymore...
18- */
19-
20- errno = ENODEV;
21- return (-1);
22+ return (open(uri + 4, O_RDWR | O_EXCL));
23 }
24 else if (!strncmp(uri, "usb://", 6))
25 {
This page took 0.031826 seconds and 4 git commands to generate.