cups/cups-1.2.2-testppd_filename.patch

28 lines
836 B
Diff

--- cups-1.2.2/systemv/cupstestppd.c.orig 2006-07-25 18:43:43.000000000 +0200
+++ cups-1.2.2/systemv/cupstestppd.c 2006-07-25 19:09:20.000000000 +0200
@@ -90,6 +90,7 @@
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? */
@@ -293,6 +294,7 @@
errors = 0;
ppdversion = 43;
+ ppdfilename = argv[i];
if (verbose > 0)
_cupsLangPuts(stdout,
@@ -1204,7 +1206,7 @@
if (verbose >= 0)
{
- check_basics(argv[i]);
+ check_basics(ppdfilename);
/*
* Look for default keywords with no corresponding option...