]> git.pld-linux.org Git - packages/cups.git/blobdiff - cups-direct_usb.patch
- rel 3
[packages/cups.git] / cups-direct_usb.patch
index ecab1dc82bc48af24d584a50ed841616f837d705..3e7bef37b63b468ab1b5f6c16fcb9f7aed2209fc 100644 (file)
@@ -1,9 +1,9 @@
 --- cups-1.2.8/backend/usb-unix.c.direct-usb   2007-02-05 20:25:50.000000000 +0000
 +++ cups-1.2.8/backend/usb-unix.c      2007-02-14 17:44:40.000000000 +0000
 @@ -87,6 +87,8 @@
-     use_bc = strcasecmp(hostname, "Canon") &&
-              strcasecmp(hostname, "Konica Minolta") &&
-              strcasecmp(hostname, "Minolta");
+              strcasecmp(hostname, "Canon") &&
+              strncasecmp(hostname, "Konica", 6) &&
+              strncasecmp(hostname, "Minolta", 7);
 +    if (use_bc && !strncmp(uri, "usb:/dev/", 9))
 +      use_bc = 0;
  #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */
This page took 0.028838 seconds and 4 git commands to generate.