#! /bin/sh /usr/share/dpatch/dpatch-run ## printer-job-queue.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad cups-1.3.8~/cgi-bin/ipp-var.c cups-1.3.8/cgi-bin/ipp-var.c --- cups-1.3.8~/cgi-bin/ipp-var.c 2010-11-03 11:28:47.000000000 -0700 +++ cups-1.3.8/cgi-bin/ipp-var.c 2010-11-03 11:31:12.102518803 -0700 @@ -1357,7 +1357,12 @@ else { if (dest) + { + snprintf(url, sizeof(url), "/%s/%s", section, dest); + cgiSetVariable("PRINTER_NAME", dest); + cgiSetVariable("PRINTER_URI_SUPPORTED", url); snprintf(url, sizeof(url), "/%s/%s?", section, dest); + } else strlcpy(url, "/jobs/?", sizeof(url));