2006-07-04 16:58:59 +00:00
|
|
|
--- cups-1.2.1/backend/usb-unix.c.direct-usb 2006-07-04 17:50:28.000000000 +0100
|
|
|
|
+++ cups-1.2.1/backend/usb-unix.c 2006-07-04 17:51:56.000000000 +0100
|
|
|
|
@@ -327,12 +327,7 @@
|
2006-04-04 15:10:37 +00:00
|
|
|
if (!strncmp(uri, "usb:/dev/", 9))
|
|
|
|
#ifdef __linux
|
2006-07-04 16:58:59 +00:00
|
|
|
{
|
|
|
|
- /*
|
|
|
|
- * Do not allow direct devices anymore...
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
- errno = ENODEV;
|
|
|
|
- return (-1);
|
2006-04-04 15:10:37 +00:00
|
|
|
+ return (open(uri + 4, O_RDWR | O_EXCL));
|
2006-07-04 16:58:59 +00:00
|
|
|
}
|
2006-04-04 15:10:37 +00:00
|
|
|
else if (!strncmp(uri, "usb://", 6))
|
|
|
|
{
|