19292724 printing to a raw queue is delayed by 4 seconds s11u2-sru
authorMohana Rao Gorai <mohana.gorai@oracle.com>
Sun, 14 Dec 2014 21:39:43 -0800
branchs11u2-sru
changeset 3546 53d07f5ab941
parent 3545 bcd36758306e
child 3548 4fd4fb5d5c82
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	Sun Dec 14 21:39:43 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
+@@ -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;