19292724 printing to a raw queue is delayed by 4 seconds
authorMohana Rao Gorai <mohana.gorai@oracle.com>
Thu, 20 Nov 2014 17:28:00 -0800
changeset 2220 f90102a64c23
parent 2219 01548f9a0b62
child 2221 056dc4847362
19292724 printing to a raw queue is delayed by 4 seconds
components/cups/patches/str3809.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/cups/patches/str3809.patch	Thu Nov 20 17:28:00 2014 -0800
@@ -0,0 +1,19 @@
+See: http://www.cups.org/str.php?L3809 for details.
+
+Index: backend/snmp-supplies.c
+===================================================================
+--- backend/snmp-supplies.c
++++ backend/snmp-supplies.c
[email protected]@ -373,9 +373,9 @@
+   * See if we should be getting supply levels via SNMP...
+   */
+ 
+-  if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL &&
+-      (ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
+-      ppdattr->value && strcasecmp(ppdattr->value, "true"))
++  if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
++      ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
++       ppdattr->value && strcasecmp(ppdattr->value, "true")))
+   {
+     ppdClose(ppd);
+     return;