CHANGES IN CUPS V1.1.20rc1
+ - The cupstestppd program now checks for bad
+ JobPatchFile attributes and incorrect versions of the
+ Manufacturer attribute for HP printers (STR #155)
+ - The filter makefile incorrectly installed
+ libcupsimage.a in the filter directory (STR #180)
+ - The scheduler did not verify that the job history
+ files define the job-priority and
+ job-originating-user-name attributes (STR #178)
- The pstops filter didn't handle poorly-formed binary
PostScript files that had CTRL-D's in them (STR #156)
- The ppdOpen*() and cupsLangGet() functions did not
#
-# "$Id: Makefile,v 1.41.2.23 2003/04/17 23:10:34 mike Exp $"
+# "$Id: Makefile,v 1.41.2.24 2003/07/20 02:34:26 mike Exp $"
#
# Filter makefile for the Common UNIX Printing System (CUPS).
#
include ../Makedefs
FILTERS = gziptoany hpgltops texttops pstops imagetops imagetoraster \
- rastertodymo rastertoepson rastertohp rastertortl \
- libcupsimage.a
+ rastertodymo rastertoepson rastertohp rastertortl
TARGETS = $(FILTERS) testraster
HPGLOBJS = hpgl-attr.o hpgl-config.o hpgl-main.o hpgl-prolog.o \
#
clean:
- $(RM) $(OBJS) $(TARGETS) $(LIBCUPSIMAGE)
+ $(RM) $(OBJS) $(TARGETS) $(LIBCUPSIMAGE) libcupsimage.a
$(RM) `basename $(LIBCUPSIMAGE) .2` libcupsimage.dylib
#
-# End of "$Id: Makefile,v 1.41.2.23 2003/04/17 23:10:34 mike Exp $".
+# End of "$Id: Makefile,v 1.41.2.24 2003/07/20 02:34:26 mike Exp $".
#
/*
- * "$Id: job.c,v 1.124.2.74 2003/07/19 22:13:54 mike Exp $"
+ * "$Id: job.c,v 1.124.2.75 2003/07/20 02:34:27 mike Exp $"
*
* Job management routines for the Common UNIX Printing System (CUPS).
*
IPP_TAG_INTEGER);
job->job_sheets = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_NAME);
- attr = ippFindAttribute(job->attrs, "job-priority", IPP_TAG_INTEGER);
+ if ((attr = ippFindAttribute(job->attrs, "job-priority", IPP_TAG_INTEGER)) == NULL)
+ {
+ LogMessage(L_ERROR, "LoadAllJobs: Missing or bad job-priority attribute in control file \"%s\"!",
+ filename);
+ ippDelete(job->attrs);
+ free(job);
+ unlink(filename);
+ continue;
+ }
job->priority = attr->values[0].integer;
- attr = ippFindAttribute(job->attrs, "job-originating-user-name", IPP_TAG_NAME);
+ if ((attr = ippFindAttribute(job->attrs, "job-originating-user-name", IPP_TAG_NAME)) == NULL)
+ {
+ LogMessage(L_ERROR, "LoadAllJobs: Missing or bad job-originating-user-name attribute in control file \"%s\"!",
+ filename);
+ ippDelete(job->attrs);
+ free(job);
+ unlink(filename);
+ continue;
+ }
SetString(&job->username, attr->values[0].string.text);
/*
/*
- * End of "$Id: job.c,v 1.124.2.74 2003/07/19 22:13:54 mike Exp $".
+ * End of "$Id: job.c,v 1.124.2.75 2003/07/20 02:34:27 mike Exp $".
*/
/*
- * "$Id: cupstestppd.c,v 1.1.2.23 2003/06/07 16:35:56 mike Exp $"
+ * "$Id: cupstestppd.c,v 1.1.2.24 2003/07/20 02:34:29 mike Exp $"
*
* PPD test program for the Common UNIX Printing System (CUPS).
*
if (ppd->manufacturer != NULL)
{
- if (verbose > 0)
+ if (!strncasecmp(ppd->manufacturer, "Hewlett-Packard", 15) ||
+ !strncasecmp(ppd->manufacturer, "Hewlett Packard", 15))
+ {
+ if (verbose >= 0)
+ {
+ if (!errors && !verbose)
+ puts(" FAIL");
+
+ puts(" **FAIL** BAD Manufacturer (should be \"HP\")");
+ puts(" REF: Page 211, table D.1.");
+ }
+
+ errors ++;
+ }
+ else if (verbose > 0)
puts(" PASS Manufacturer");
}
else if (ppdversion >= 43)
errors ++;
}
+ if (ppd->patches != NULL && strchr(ppd->patches, '\"') &&
+ strstr(ppd->patches, "*End"))
+ {
+ if (verbose >= 0)
+ {
+ if (!errors && !verbose)
+ puts(" FAIL");
+
+ puts(" **FAIL** BAD JobPatchFile attribute in file");
+ puts(" REF: Page 24, section 3.4.");
+ }
+
+ errors ++;
+ }
+
if (errors)
status = ERROR_CONFORMANCE;
else if (!verbose)
/*
- * End of "$Id: cupstestppd.c,v 1.1.2.23 2003/06/07 16:35:56 mike Exp $".
+ * End of "$Id: cupstestppd.c,v 1.1.2.24 2003/07/20 02:34:29 mike Exp $".
*/