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