2009-12-02 17:52:03 +00:00
|
|
|
Index: cups-1.3.11/systemv/cupstestppd.c
|
|
|
|
===================================================================
|
|
|
|
--- cups-1.3.11.orig/systemv/cupstestppd.c
|
|
|
|
+++ cups-1.3.11/systemv/cupstestppd.c
|
|
|
|
@@ -129,6 +129,7 @@ main(int argc, /* I - Number of comm
|
2007-05-11 08:35:56 +00:00
|
|
|
int i, j, k, m, n; /* Looping vars */
|
|
|
|
int len; /* Length of option name */
|
|
|
|
char *opt; /* Option character */
|
|
|
|
+ char *ppdfilename; /* Pointer to actual PPD file */
|
|
|
|
const char *ptr; /* Pointer into string */
|
|
|
|
int files; /* Number of files */
|
|
|
|
int verbose; /* Want verbose output? */
|
2009-12-02 17:52:03 +00:00
|
|
|
@@ -375,6 +376,7 @@ main(int argc, /* I - Number of comm
|
2007-05-11 08:35:56 +00:00
|
|
|
|
|
|
|
errors = 0;
|
|
|
|
ppdversion = 43;
|
|
|
|
+ ppdfilename = argv[i];
|
|
|
|
|
|
|
|
if (verbose > 0)
|
|
|
|
_cupsLangPuts(stdout,
|
2009-12-02 17:52:03 +00:00
|
|
|
@@ -1171,7 +1173,7 @@ main(int argc, /* I - Number of comm
|
|
|
|
|
2007-05-11 08:35:56 +00:00
|
|
|
if (verbose >= 0)
|
|
|
|
{
|
|
|
|
- check_basics(argv[i]);
|
|
|
|
+ check_basics(ppdfilename);
|
|
|
|
|
2009-12-02 17:52:03 +00:00
|
|
|
if (warn & WARN_CONSTRAINTS)
|
|
|
|
errors = check_constraints(ppd, errors, verbose, 1);
|