Blame SOURCES/cups-str4500.patch

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