components/cups/patches/str3809.patch
author Drew Fisher <drew.fisher@oracle.com>
Fri, 16 Sep 2016 07:20:38 -0700
changeset 6917 6936cd289acf
parent 2220 f90102a64c23
permissions -rw-r--r--
24674278 swift puppet module still defines a File dependency with no file entries

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;