Blame SOURCES/cups-str4500.patch

c5086f
diff -up cups-2.0.0/cups/util.c.str4500 cups-2.0.0/cups/util.c
c5086f
--- cups-2.0.0/cups/util.c.str4500	2014-10-15 12:59:27.105942488 +0100
c5086f
+++ cups-2.0.0/cups/util.c	2014-10-15 13:03:38.618187112 +0100
c5086f
@@ -846,10 +846,10 @@ cupsGetPPD3(http_t     *http,		/* I  - H
c5086f
 
c5086f
     snprintf(ppdname, sizeof(ppdname), "%s/ppd/%s.ppd", cg->cups_serverroot,
c5086f
              name);
c5086f
-    if (!stat(ppdname, &ppdinfo))
c5086f
+    if (!stat(ppdname, &ppdinfo) && !access(ppdname, R_OK))
c5086f
     {
c5086f
      /*
c5086f
-      * OK, the file exists, use it!
c5086f
+      * OK, the file exists and is readable, use it!
c5086f
       */
c5086f
 
c5086f
       if (buffer[0])