summaryrefslogtreecommitdiff
path: root/systemv/cupstestppd.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-05-01 21:18:10 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-05-01 21:18:10 +0000
commit7a14d7682bc444c9c97dd5bfd18a3da07efd7eb3 (patch)
tree3bf9addf59af3cc5e73675280216f8b4833120f8 /systemv/cupstestppd.c
parenta4f1b3dff2cc9e7c0adb6b221bf3544955a45a71 (diff)
downloadcups-7a14d7682bc444c9c97dd5bfd18a3da07efd7eb3.tar.gz
Merge CUPS 1.4svn-r7524.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@733 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/cupstestppd.c')
-rw-r--r--systemv/cupstestppd.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/systemv/cupstestppd.c b/systemv/cupstestppd.c
index 6bbf63ada..ac4e67de5 100644
--- a/systemv/cupstestppd.c
+++ b/systemv/cupstestppd.c
@@ -18,6 +18,18 @@
*
* Contents:
*
+ * main() - Main entry for test program.
+ * check_basics() - Check for CR LF, mixed line endings, and blank
+ * lines.
+ * check_constraints() - Check UIConstraints in the PPD file.
+ * check_defaults() - Check default option keywords in the PPD file.
+ * check_filters() - Check filters in the PPD file.
+ * check_profiles() - Check ICC color profiles in the PPD file.
+ * check_translations() - Check translations in the PPD file.
+ * show_conflicts() - Show option conflicts in a PPD file.
+ * test_raster() - Test PostScript commands for raster printers.
+ * usage() - Show program usage...
+ * valid_utf8() - Check whether a string contains valid UTF-8 text.
*/
/*
@@ -118,7 +130,6 @@ main(int argc, /* I - Number of command-line args */
int ppdversion; /* PPD spec version in PPD file */
ppd_status_t error; /* Status of ppdOpen*() */
int line; /* Line number for error */
- struct stat statbuf; /* File information */
char *root; /* Root directory */
int xdpi, /* X resolution */
ydpi; /* Y resolution */
@@ -1370,7 +1381,7 @@ main(int argc, /* I - Number of command-line args */
attr != NULL;
attr = ppdFindNextAttr(ppd, "APDialogExtension", NULL))
{
- if ((!attr->value || stat(attr->value, &statbuf)) && verbose >= 0)
+ if ((!attr->value || access(attr->value, 0)) && verbose >= 0)
_cupsLangPrintf(stdout, _(" WARN Missing "
"APDialogExtension file \"%s\"\n"),
attr->value ? attr->value : "<NULL>");
@@ -1384,7 +1395,7 @@ main(int argc, /* I - Number of command-line args */
attr != NULL;
attr = ppdFindNextAttr(ppd, "APPrinterIconPath", NULL))
{
- if ((!attr->value || stat(attr->value, &statbuf)) && verbose >= 0)
+ if ((!attr->value || access(attr->value, 0)) && verbose >= 0)
_cupsLangPrintf(stdout, _(" WARN Missing "
"APPrinterIconPath file \"%s\"\n"),
attr->value ? attr->value : "<NULL>");