Blame SOURCES/cups-str4500.patch

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