diff options
author | root <root@rshg054.dnsready.net> | 2012-09-05 00:02:31 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-05 00:02:31 +0000 |
commit | b915a21821423232052e2e48ea14f288b3098c32 (patch) | |
tree | 36efd4baf3e66f689f2c7d58d05d0a64fbfcc6e9 /testing/cups/recognize-remote-cups-queue-via-dnssd-uri.patch | |
parent | 8b7b4f2e5a808cb0c1226c23469fa57751eba190 (diff) |
Wed Sep 5 00:02:30 UTC 2012
Diffstat (limited to 'testing/cups/recognize-remote-cups-queue-via-dnssd-uri.patch')
-rw-r--r-- | testing/cups/recognize-remote-cups-queue-via-dnssd-uri.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/cups/recognize-remote-cups-queue-via-dnssd-uri.patch b/testing/cups/recognize-remote-cups-queue-via-dnssd-uri.patch new file mode 100644 index 000000000..6349bd901 --- /dev/null +++ b/testing/cups/recognize-remote-cups-queue-via-dnssd-uri.patch @@ -0,0 +1,25 @@ +diff -uraN cups/scheduler/printers.c cups-new/scheduler/printers.c +--- cups/scheduler/printers.c 2012-05-25 15:28:49.000000000 +0200 ++++ cups-new/scheduler/printers.c 2012-08-04 20:58:40.475725544 +0200 +@@ -4829,13 +4829,14 @@ + "printer-make-and-model", NULL, + "Local System V Printer"); + } +- else if (!strncmp(p->device_uri, "ipp://", 6) && +- (strstr(p->device_uri, "/printers/") != NULL || +- strstr(p->device_uri, "/classes/") != NULL || +- ((strstr(p->device_uri, "._ipp.") != NULL || +- strstr(p->device_uri, "._ipps.") != NULL) && +- !strcmp(p->device_uri + strlen(p->device_uri) - 5, +- "/cups")))) ++ else if ((!strncmp(p->device_uri, "ipp://", 6) && ++ (strstr(p->device_uri, "/printers/") != NULL || ++ strstr(p->device_uri, "/classes/") != NULL)) || ++ (!strncmp(p->device_uri, "dnssd://", 8) && ++ (strstr(p->device_uri, "._ipp.") != NULL || ++ strstr(p->device_uri, "._ipps.") != NULL) && ++ !strcmp(p->device_uri + strlen(p->device_uri) - 5, ++ "/cups"))) + { + /* + * Tell the client this is really a hard-wired remote printer. |