]> git.pld-linux.org Git - packages/cups.git/blob - cups-direct_usb.patch
more verbose files, so we can track what belongs to cups and what to cups-filters...
[packages/cups.git] / cups-direct_usb.patch
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 @@
4               strcasecmp(hostname, "Canon") &&
5               strncasecmp(hostname, "Konica", 6) &&
6               strncasecmp(hostname, "Minolta", 7);
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.063909 seconds and 3 git commands to generate.