components/cups/patches/str3809.patch
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Thu, 16 Feb 2017 16:13:13 -0800
changeset 7685 a7ec984d7d4c
parent 2220 f90102a64c23
permissions -rw-r--r--
25564905 incorrect permissions on some desktop component deliveries in /usr/lib

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;