Merge branch 'f13' into f14

This commit is contained in:
Jiri Popelka 2010-11-12 14:53:10 +01:00
commit 564a0cfeed
8 changed files with 139 additions and 231 deletions

1
.gitignore vendored
View File

@ -43,3 +43,4 @@ cups-1.4b2-source.tar.bz2
cups-1.4b2-svn8404-source.tar.bz2 cups-1.4b2-svn8404-source.tar.bz2
cups-1.4.3-source.tar.bz2 cups-1.4.3-source.tar.bz2
cups-1.4.4-source.tar.bz2 cups-1.4.4-source.tar.bz2
/cups-1.4.5-source.tar.bz2

View File

@ -1,47 +0,0 @@
diff -up cups-1.4.4/cups/ipp.c.CVE-2010-2941 cups-1.4.4/cups/ipp.c
--- cups-1.4.4/cups/ipp.c.CVE-2010-2941 2010-04-23 19:56:34.000000000 +0100
+++ cups-1.4.4/cups/ipp.c 2010-11-11 11:30:28.566745595 +0000
@@ -1275,7 +1275,9 @@ ippReadIO(void *src, /* I - Data
attr->value_tag = tag;
}
- else if ((value_tag >= IPP_TAG_TEXTLANG &&
+ else if (value_tag == IPP_TAG_TEXTLANG ||
+ value_tag == IPP_TAG_NAMELANG ||
+ (value_tag >= IPP_TAG_TEXT &&
value_tag <= IPP_TAG_MIMETYPE))
{
/*
@@ -1283,8 +1285,9 @@ ippReadIO(void *src, /* I - Data
* forms; accept sets of differing values...
*/
- if ((tag < IPP_TAG_TEXTLANG || tag > IPP_TAG_MIMETYPE) &&
- tag != IPP_TAG_NOVALUE)
+ if (tag != IPP_TAG_TEXTLANG && tag != IPP_TAG_NAMELANG &&
+ (tag < IPP_TAG_TEXT || tag > IPP_TAG_MIMETYPE) &&
+ tag != IPP_TAG_NOVALUE)
{
DEBUG_printf(("1ippReadIO: 1setOf value tag %x(%s) != %x(%s)",
value_tag, ippTagString(value_tag), tag,
@@ -2766,6 +2769,7 @@ _ippFreeAttr(ipp_attribute_t *attr) /* I
{
case IPP_TAG_TEXT :
case IPP_TAG_NAME :
+ case IPP_TAG_RESERVED_STRING :
case IPP_TAG_KEYWORD :
case IPP_TAG_URI :
case IPP_TAG_URISCHEME :
diff -up cups-1.4.4/cups/ipp.h.CVE-2010-2941 cups-1.4.4/cups/ipp.h
--- cups-1.4.4/cups/ipp.h.CVE-2010-2941 2010-04-23 19:56:34.000000000 +0100
+++ cups-1.4.4/cups/ipp.h 2010-11-11 11:30:28.568745537 +0000
@@ -93,7 +93,8 @@ typedef enum ipp_tag_e /**** Format ta
IPP_TAG_END_COLLECTION, /* End of collection value */
IPP_TAG_TEXT = 0x41, /* Text value */
IPP_TAG_NAME, /* Name value */
- IPP_TAG_KEYWORD = 0x44, /* Keyword value */
+ IPP_TAG_RESERVED_STRING, /* Reserved for future string value @private@ */
+ IPP_TAG_KEYWORD, /* Keyword value */
IPP_TAG_URI, /* URI value */
IPP_TAG_URISCHEME, /* URI scheme value */
IPP_TAG_CHARSET, /* Character set value */

View File

@ -1,6 +1,6 @@
diff -up cups-1.4.0/backend/dnssd.c.avahi cups-1.4.0/backend/dnssd.c diff -up cups-1.4.5/backend/dnssd.c.avahi cups-1.4.5/backend/dnssd.c
--- cups-1.4.0/backend/dnssd.c.avahi 2009-08-07 23:27:12.000000000 +0100 --- cups-1.4.5/backend/dnssd.c.avahi 2009-08-08 00:27:12.000000000 +0200
+++ cups-1.4.0/backend/dnssd.c 2009-09-04 14:57:04.730388833 +0100 +++ cups-1.4.5/backend/dnssd.c 2010-11-12 13:13:31.000000000 +0100
@@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
* exec_backend() - Execute the backend that corresponds to the * exec_backend() - Execute the backend that corresponds to the
* resolved service name. * resolved service name.
@ -794,10 +794,10 @@ diff -up cups-1.4.0/backend/dnssd.c.avahi cups-1.4.0/backend/dnssd.c
/* /*
* 'sigterm_handler()' - Handle termination signals... * 'sigterm_handler()' - Handle termination signals...
*/ */
diff -up cups-1.4.0/config.h.in.avahi cups-1.4.0/config.h.in diff -up cups-1.4.5/config.h.in.avahi cups-1.4.5/config.h.in
--- cups-1.4.0/config.h.in.avahi 2009-06-10 16:51:21.000000000 +0100 --- cups-1.4.5/config.h.in.avahi 2010-08-13 06:11:46.000000000 +0200
+++ cups-1.4.0/config.h.in 2009-09-04 14:57:04.733388405 +0100 +++ cups-1.4.5/config.h.in 2010-11-12 13:13:31.000000000 +0100
@@ -336,6 +336,13 @@ @@ -344,6 +344,13 @@
/* /*
@ -811,9 +811,9 @@ diff -up cups-1.4.0/config.h.in.avahi cups-1.4.0/config.h.in
* Do we have <sys/ioctl.h>? * Do we have <sys/ioctl.h>?
*/ */
diff -up cups-1.4.0/config-scripts/cups-dnssd.m4.avahi cups-1.4.0/config-scripts/cups-dnssd.m4 diff -up cups-1.4.5/config-scripts/cups-dnssd.m4.avahi cups-1.4.5/config-scripts/cups-dnssd.m4
--- cups-1.4.0/config-scripts/cups-dnssd.m4.avahi 2009-02-10 17:05:35.000000000 +0000 --- cups-1.4.5/config-scripts/cups-dnssd.m4.avahi 2009-08-29 00:54:34.000000000 +0200
+++ cups-1.4.0/config-scripts/cups-dnssd.m4 2009-09-04 14:57:04.731388902 +0100 +++ cups-1.4.5/config-scripts/cups-dnssd.m4 2010-11-12 13:13:31.000000000 +0100
@@ -27,6 +27,21 @@ AC_ARG_WITH(dnssd-includes, [ --with-dn @@ -27,6 +27,21 @@ AC_ARG_WITH(dnssd-includes, [ --with-dn
DNSSDLIBS="" DNSSDLIBS=""
DNSSD_BACKEND="" DNSSD_BACKEND=""
@ -836,9 +836,9 @@ diff -up cups-1.4.0/config-scripts/cups-dnssd.m4.avahi cups-1.4.0/config-scripts
if test x$enable_dnssd != xno; then if test x$enable_dnssd != xno; then
AC_CHECK_HEADER(dns_sd.h, [ AC_CHECK_HEADER(dns_sd.h, [
case "$uname" in case "$uname" in
diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c diff -up cups-1.4.5/cups/http-support.c.avahi cups-1.4.5/cups/http-support.c
--- cups-1.4.0/cups/http-support.c.avahi 2009-06-12 01:21:58.000000000 +0100 --- cups-1.4.5/cups/http-support.c.avahi 2010-10-02 00:40:38.000000000 +0200
+++ cups-1.4.0/cups/http-support.c 2009-09-04 14:57:04.736398674 +0100 +++ cups-1.4.5/cups/http-support.c 2010-11-12 13:28:45.000000000 +0100
@@ -55,6 +55,11 @@ @@ -55,6 +55,11 @@
# include <dns_sd.h> # include <dns_sd.h>
# include <poll.h> # include <poll.h>
@ -876,7 +876,7 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
/* /*
* 'httpAssembleURI()' - Assemble a uniform resource identifier from its * 'httpAssembleURI()' - Assemble a uniform resource identifier from its
@@ -1349,15 +1372,26 @@ _httpResolveURI( @@ -1351,16 +1374,27 @@ _httpResolveURI(
if (strstr(hostname, "._tcp")) if (strstr(hostname, "._tcp"))
{ {
@ -887,7 +887,8 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
DNSServiceRef ref, /* DNS-SD master service reference */ DNSServiceRef ref, /* DNS-SD master service reference */
domainref, /* DNS-SD service reference for domain */ domainref, /* DNS-SD service reference for domain */
localref; /* DNS-SD service reference for .local */ localref; /* DNS-SD service reference for .local */
int domainsent = 0; /* Send the domain resolve? */ int domainsent = 0, /* Send the domain resolve? */
offline = 0; /* offline-report state set? */
- char *regtype, /* Pointer to type in hostname */ - char *regtype, /* Pointer to type in hostname */
- *domain; /* Pointer to domain in hostname */ - *domain; /* Pointer to domain in hostname */
_http_uribuf_t uribuf; /* URI buffer */ _http_uribuf_t uribuf; /* URI buffer */
@ -905,7 +906,7 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
if (logit) if (logit)
@@ -1395,8 +1429,13 @@ _httpResolveURI( @@ -1398,8 +1432,13 @@ _httpResolveURI(
if (domain) if (domain)
*domain++ = '\0'; *domain++ = '\0';
@ -919,7 +920,7 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
resolved_uri[0] = '\0'; resolved_uri[0] = '\0';
@@ -1411,6 +1450,7 @@ _httpResolveURI( @@ -1414,6 +1453,7 @@ _httpResolveURI(
uri = NULL; uri = NULL;
@ -927,7 +928,7 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
if (DNSServiceCreateConnection(&ref) == kDNSServiceErr_NoError) if (DNSServiceCreateConnection(&ref) == kDNSServiceErr_NoError)
{ {
localref = ref; localref = ref;
@@ -1486,6 +1526,36 @@ _httpResolveURI( @@ -1500,6 +1540,36 @@ _httpResolveURI(
DNSServiceRefDeallocate(ref); DNSServiceRefDeallocate(ref);
} }
@ -964,8 +965,8 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
if (logit) if (logit)
{ {
@@ -1497,13 +1567,13 @@ _httpResolveURI( @@ -1511,13 +1581,13 @@ _httpResolveURI(
fputs("STATE: -connecting-to-device\n", stderr); fputs("STATE: -connecting-to-device,offline-report\n", stderr);
} }
-#else -#else
@ -980,7 +981,7 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
if (logit && !uri) if (logit && !uri)
_cupsLangPuts(stderr, _("Unable to find printer!\n")); _cupsLangPuts(stderr, _("Unable to find printer!\n"));
@@ -1708,6 +1778,105 @@ resolve_callback( @@ -1722,6 +1792,105 @@ resolve_callback(
} }
#endif /* HAVE_DNSSD */ #endif /* HAVE_DNSSD */
@ -1085,4 +1086,4 @@ diff -up cups-1.4.0/cups/http-support.c.avahi cups-1.4.0/cups/http-support.c
+ +
/* /*
* End of "$Id: http-support.c 8705 2009-06-12 00:21:58Z mike $". * End of "$Id: http-support.c 9322 2010-10-01 22:40:38Z mike $".

View File

@ -1,9 +1,9 @@
diff -up cups-1.4.4/config.h.in.lspp cups-1.4.4/config.h.in diff -up cups-1.4.5/config.h.in.lspp cups-1.4.5/config.h.in
--- cups-1.4.4/config.h.in.lspp 2010-06-18 09:38:22.645104842 +0100 --- cups-1.4.5/config.h.in.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/config.h.in 2010-06-18 09:38:22.681104733 +0100 +++ cups-1.4.5/config.h.in 2010-11-12 13:32:50.000000000 +0100
@@ -646,6 +646,13 @@ @@ -672,6 +672,12 @@
#undef HAVE_TCPD_H #undef HAVE_SYS_STATVFS_H
#undef HAVE_SYS_VFS_H
+/* +/*
+ * Are we trying to meet LSPP requirements? + * Are we trying to meet LSPP requirements?
@ -11,13 +11,12 @@ diff -up cups-1.4.4/config.h.in.lspp cups-1.4.4/config.h.in
+ +
+#undef WITH_LSPP +#undef WITH_LSPP
+ +
+
#endif /* !_CUPS_CONFIG_H_ */ #endif /* !_CUPS_CONFIG_H_ */
/* diff -up cups-1.4.5/config-scripts/cups-lspp.m4.lspp cups-1.4.5/config-scripts/cups-lspp.m4
diff -up cups-1.4.4/config-scripts/cups-lspp.m4.lspp cups-1.4.4/config-scripts/cups-lspp.m4 --- cups-1.4.5/config-scripts/cups-lspp.m4.lspp 2010-11-12 13:31:27.000000000 +0100
--- cups-1.4.4/config-scripts/cups-lspp.m4.lspp 2010-06-18 09:38:22.681104733 +0100 +++ cups-1.4.5/config-scripts/cups-lspp.m4 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/config-scripts/cups-lspp.m4 2010-06-18 09:38:22.681104733 +0100
@@ -0,0 +1,36 @@ @@ -0,0 +1,36 @@
+dnl +dnl
+dnl LSPP code for the Common UNIX Printing System (CUPS). +dnl LSPP code for the Common UNIX Printing System (CUPS).
@ -55,9 +54,9 @@ diff -up cups-1.4.4/config-scripts/cups-lspp.m4.lspp cups-1.4.4/config-scripts/c
+ ;; + ;;
+ esac + esac
+fi +fi
diff -up cups-1.4.4/configure.in.lspp cups-1.4.4/configure.in diff -up cups-1.4.5/configure.in.lspp cups-1.4.5/configure.in
--- cups-1.4.4/configure.in.lspp 2010-06-16 01:39:16.000000000 +0100 --- cups-1.4.5/configure.in.lspp 2010-06-22 23:42:44.000000000 +0200
+++ cups-1.4.4/configure.in 2010-06-18 09:38:22.682104565 +0100 +++ cups-1.4.5/configure.in 2010-11-12 13:31:27.000000000 +0100
@@ -42,6 +42,8 @@ sinclude(config-scripts/cups-pap.m4) @@ -42,6 +42,8 @@ sinclude(config-scripts/cups-pap.m4)
sinclude(config-scripts/cups-pdf.m4) sinclude(config-scripts/cups-pdf.m4)
sinclude(config-scripts/cups-scripting.m4) sinclude(config-scripts/cups-scripting.m4)
@ -67,9 +66,9 @@ diff -up cups-1.4.4/configure.in.lspp cups-1.4.4/configure.in
INSTALL_LANGUAGES="" INSTALL_LANGUAGES=""
UNINSTALL_LANGUAGES="" UNINSTALL_LANGUAGES=""
LANGFILES="" LANGFILES=""
diff -up cups-1.4.4/cups/cups.h.lspp cups-1.4.4/cups/cups.h diff -up cups-1.4.5/cups/cups.h.lspp cups-1.4.5/cups/cups.h
--- cups-1.4.4/cups/cups.h.lspp 2010-04-23 19:56:34.000000000 +0100 --- cups-1.4.5/cups/cups.h.lspp 2010-06-22 05:18:27.000000000 +0200
+++ cups-1.4.4/cups/cups.h 2010-06-18 09:38:22.682104565 +0100 +++ cups-1.4.5/cups/cups.h 2010-11-12 13:31:27.000000000 +0100
@@ -15,6 +15,9 @@ @@ -15,6 +15,9 @@
* This file is subject to the Apple OS-Developed Software exception. * This file is subject to the Apple OS-Developed Software exception.
*/ */
@ -93,9 +92,9 @@ diff -up cups-1.4.4/cups/cups.h.lspp cups-1.4.4/cups/cups.h
/* /*
* Types and structures... * Types and structures...
*/ */
diff -up cups-1.4.4/data/Makefile.lspp cups-1.4.4/data/Makefile diff -up cups-1.4.5/data/Makefile.lspp cups-1.4.5/data/Makefile
--- cups-1.4.4/data/Makefile.lspp 2008-11-12 19:30:57.000000000 +0000 --- cups-1.4.5/data/Makefile.lspp 2008-11-12 20:30:57.000000000 +0100
+++ cups-1.4.4/data/Makefile 2010-06-18 09:38:22.686104153 +0100 +++ cups-1.4.5/data/Makefile 2010-11-12 13:31:27.000000000 +0100
@@ -25,7 +25,10 @@ BANNERS = \ @@ -25,7 +25,10 @@ BANNERS = \
secret \ secret \
standard \ standard \
@ -108,9 +107,9 @@ diff -up cups-1.4.4/data/Makefile.lspp cups-1.4.4/data/Makefile
CHARMAPS = \ CHARMAPS = \
euc-cn.txt \ euc-cn.txt \
diff -up cups-1.4.4/data/mls.lspp cups-1.4.4/data/mls diff -up cups-1.4.5/data/mls.lspp cups-1.4.5/data/mls
--- cups-1.4.4/data/mls.lspp 2010-06-18 09:38:22.686104153 +0100 --- cups-1.4.5/data/mls.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/data/mls 2010-06-18 09:38:22.687104566 +0100 +++ cups-1.4.5/data/mls 2010-11-12 13:31:27.000000000 +0100
@@ -0,0 +1,261 @@ @@ -0,0 +1,261 @@
+%!PS-Adobe-3.0 +%!PS-Adobe-3.0
+%%BoundingBox: 0 0 612 792 +%%BoundingBox: 0 0 612 792
@ -373,9 +372,9 @@ diff -up cups-1.4.4/data/mls.lspp cups-1.4.4/data/mls
+% End of "$Id: mls_template,v 1.1 2005/06/27 18:44:46 colmo Exp $". +% End of "$Id: mls_template,v 1.1 2005/06/27 18:44:46 colmo Exp $".
+% +%
+%%EOF +%%EOF
diff -up cups-1.4.4/data/selinux.lspp cups-1.4.4/data/selinux diff -up cups-1.4.5/data/selinux.lspp cups-1.4.5/data/selinux
--- cups-1.4.4/data/selinux.lspp 2010-06-18 09:38:22.687104566 +0100 --- cups-1.4.5/data/selinux.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/data/selinux 2010-06-18 09:38:22.687104566 +0100 +++ cups-1.4.5/data/selinux 2010-11-12 13:31:27.000000000 +0100
@@ -0,0 +1,261 @@ @@ -0,0 +1,261 @@
+%!PS-Adobe-3.0 +%!PS-Adobe-3.0
+%%BoundingBox: 0 0 612 792 +%%BoundingBox: 0 0 612 792
@ -638,9 +637,9 @@ diff -up cups-1.4.4/data/selinux.lspp cups-1.4.4/data/selinux
+% End of "$Id: mls_template,v 1.1 2005/06/27 18:44:46 colmo Exp $". +% End of "$Id: mls_template,v 1.1 2005/06/27 18:44:46 colmo Exp $".
+% +%
+%%EOF +%%EOF
diff -up cups-1.4.4/data/te.lspp cups-1.4.4/data/te diff -up cups-1.4.5/data/te.lspp cups-1.4.5/data/te
--- cups-1.4.4/data/te.lspp 2010-06-18 09:38:22.688105441 +0100 --- cups-1.4.5/data/te.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/data/te 2010-06-18 09:38:22.688105441 +0100 +++ cups-1.4.5/data/te 2010-11-12 13:31:27.000000000 +0100
@@ -0,0 +1,261 @@ @@ -0,0 +1,261 @@
+%!PS-Adobe-3.0 +%!PS-Adobe-3.0
+%%BoundingBox: 0 0 612 792 +%%BoundingBox: 0 0 612 792
@ -903,9 +902,9 @@ diff -up cups-1.4.4/data/te.lspp cups-1.4.4/data/te
+% End of "$Id: mls_template,v 1.1 2005/06/27 18:44:46 colmo Exp $". +% End of "$Id: mls_template,v 1.1 2005/06/27 18:44:46 colmo Exp $".
+% +%
+%%EOF +%%EOF
diff -up cups-1.4.4/filter/common.c.lspp cups-1.4.4/filter/common.c diff -up cups-1.4.5/filter/common.c.lspp cups-1.4.5/filter/common.c
--- cups-1.4.4/filter/common.c.lspp 2007-07-11 22:46:42.000000000 +0100 --- cups-1.4.5/filter/common.c.lspp 2007-07-11 23:46:42.000000000 +0200
+++ cups-1.4.4/filter/common.c 2010-06-18 09:38:22.689104687 +0100 +++ cups-1.4.5/filter/common.c 2010-11-12 13:31:27.000000000 +0100
@@ -30,6 +30,12 @@ @@ -30,6 +30,12 @@
* Include necessary headers... * Include necessary headers...
*/ */
@ -1074,10 +1073,10 @@ diff -up cups-1.4.4/filter/common.c.lspp cups-1.4.4/filter/common.c
/* /*
diff -up cups-1.4.4/filter/pstops.c.lspp cups-1.4.4/filter/pstops.c diff -up cups-1.4.5/filter/pstops.c.lspp cups-1.4.5/filter/pstops.c
--- cups-1.4.4/filter/pstops.c.lspp 2010-06-18 09:38:22.579980230 +0100 --- cups-1.4.5/filter/pstops.c.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/filter/pstops.c 2010-06-18 09:38:22.693979174 +0100 +++ cups-1.4.5/filter/pstops.c 2010-11-12 13:31:27.000000000 +0100
@@ -3314,6 +3314,18 @@ write_label_prolog(pstops_doc_t *doc, /* @@ -3335,6 +3335,18 @@ write_label_prolog(pstops_doc_t *doc, /*
{ {
const char *classification; /* CLASSIFICATION environment variable */ const char *classification; /* CLASSIFICATION environment variable */
const char *ptr; /* Temporary string pointer */ const char *ptr; /* Temporary string pointer */
@ -1096,7 +1095,7 @@ diff -up cups-1.4.4/filter/pstops.c.lspp cups-1.4.4/filter/pstops.c
/* /*
@@ -3336,6 +3348,124 @@ write_label_prolog(pstops_doc_t *doc, /* @@ -3357,6 +3369,124 @@ write_label_prolog(pstops_doc_t *doc, /*
return; return;
} }
@ -1221,7 +1220,7 @@ diff -up cups-1.4.4/filter/pstops.c.lspp cups-1.4.4/filter/pstops.c
/* /*
* Set the classification + page label string... * Set the classification + page label string...
*/ */
@@ -3414,7 +3544,10 @@ write_label_prolog(pstops_doc_t *doc, /* @@ -3435,7 +3565,10 @@ write_label_prolog(pstops_doc_t *doc, /*
doc_printf(doc, " %.0f moveto ESPpl show\n", top - 14.0); doc_printf(doc, " %.0f moveto ESPpl show\n", top - 14.0);
doc_puts(doc, "pop\n"); doc_puts(doc, "pop\n");
doc_puts(doc, "}bind put\n"); doc_puts(doc, "}bind put\n");
@ -1232,9 +1231,9 @@ diff -up cups-1.4.4/filter/pstops.c.lspp cups-1.4.4/filter/pstops.c
/* /*
diff -up cups-1.4.4/Makedefs.in.lspp cups-1.4.4/Makedefs.in diff -up cups-1.4.5/Makedefs.in.lspp cups-1.4.5/Makedefs.in
--- cups-1.4.4/Makedefs.in.lspp 2010-06-18 09:38:22.654104605 +0100 --- cups-1.4.5/Makedefs.in.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/Makedefs.in 2010-06-18 09:38:22.698980378 +0100 +++ cups-1.4.5/Makedefs.in 2010-11-12 13:31:27.000000000 +0100
@@ -146,7 +146,7 @@ LIBCUPSORDER = @LIBCUPSORDER@ @@ -146,7 +146,7 @@ LIBCUPSORDER = @LIBCUPSORDER@
LIBCUPSIMAGEORDER = @LIBCUPSIMAGEORDER@ LIBCUPSIMAGEORDER = @LIBCUPSIMAGEORDER@
LINKCUPS = @LINKCUPS@ $(SSLLIBS) $(DNSSDLIBS) LINKCUPS = @LINKCUPS@ $(SSLLIBS) $(DNSSDLIBS)
@ -1253,9 +1252,9 @@ diff -up cups-1.4.4/Makedefs.in.lspp cups-1.4.4/Makedefs.in
.SUFFIXES: .1 .1.gz .1m .1m.gz .3 .3.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .32.o .64.o .gz .SUFFIXES: .1 .1.gz .1m .1m.gz .3 .3.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .32.o .64.o .gz
.c.o: .c.o:
diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c diff -up cups-1.4.5/scheduler/client.c.lspp cups-1.4.5/scheduler/client.c
--- cups-1.4.4/scheduler/client.c.lspp 2010-04-23 19:56:34.000000000 +0100 --- cups-1.4.5/scheduler/client.c.lspp 2010-10-17 06:13:56.000000000 +0200
+++ cups-1.4.4/scheduler/client.c 2010-06-18 09:38:22.705980063 +0100 +++ cups-1.4.5/scheduler/client.c 2010-11-12 13:34:02.000000000 +0100
@@ -44,6 +44,7 @@ @@ -44,6 +44,7 @@
* valid_host() - Is the Host: field valid? * valid_host() - Is the Host: field valid?
* write_file() - Send a file via HTTP. * write_file() - Send a file via HTTP.
@ -1271,8 +1270,8 @@ diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c
+#define _GNU_SOURCE +#define _GNU_SOURCE
#ifdef HAVE_CDSASSL #ifdef HAVE_CDSASSL
# include <Security/Security.h> # include <Security/Security.h>
# ifdef HAVE_SECIDENTITYSEARCHPRIV_H # include <Security/SecItem.h>
@@ -84,6 +86,12 @@ extern const char *cssmErrorString(int e @@ -90,6 +92,12 @@ extern const char *cssmErrorString(int e
# include <tcpd.h> # include <tcpd.h>
#endif /* HAVE_TCPD_H */ #endif /* HAVE_TCPD_H */
@ -1285,7 +1284,7 @@ diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c
/* /*
* Local functions... * Local functions...
@@ -385,6 +393,57 @@ cupsdAcceptClient(cupsd_listener_t *lis) @@ -391,6 +399,57 @@ cupsdAcceptClient(cupsd_listener_t *lis)
} }
#endif /* HAVE_TCPD_H */ #endif /* HAVE_TCPD_H */
@ -1343,7 +1342,7 @@ diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c
#ifdef AF_INET6 #ifdef AF_INET6
if (con->http.hostaddr->addr.sa_family == AF_INET6) if (con->http.hostaddr->addr.sa_family == AF_INET6)
cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAcceptClient: %d from %s:%d (IPv6)", cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAcceptClient: %d from %s:%d (IPv6)",
@@ -775,6 +834,13 @@ cupsdReadClient(cupsd_client_t *con) /* @@ -781,6 +840,13 @@ cupsdReadClient(cupsd_client_t *con) /*
mime_type_t *type; /* MIME type of file */ mime_type_t *type; /* MIME type of file */
cupsd_printer_t *p; /* Printer */ cupsd_printer_t *p; /* Printer */
static unsigned request_id = 0; /* Request ID for temp files */ static unsigned request_id = 0; /* Request ID for temp files */
@ -1357,7 +1356,7 @@ diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c
status = HTTP_CONTINUE; status = HTTP_CONTINUE;
@@ -2100,6 +2166,67 @@ cupsdReadClient(cupsd_client_t *con) /* @@ -2135,6 +2201,67 @@ cupsdReadClient(cupsd_client_t *con) /*
fchmod(con->file, 0640); fchmod(con->file, 0640);
fchown(con->file, RunUser, Group); fchown(con->file, RunUser, Group);
fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC);
@ -1425,7 +1424,7 @@ diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c
} }
if (con->http.state != HTTP_POST_SEND) if (con->http.state != HTTP_POST_SEND)
@@ -4481,6 +4608,50 @@ make_certificate(cupsd_client_t *con) /* @@ -4641,6 +4768,50 @@ make_certificate(cupsd_client_t *con) /*
#endif /* HAVE_SSL */ #endif /* HAVE_SSL */
@ -1476,9 +1475,9 @@ diff -up cups-1.4.4/scheduler/client.c.lspp cups-1.4.4/scheduler/client.c
/* /*
* 'pipe_command()' - Pipe the output of a command to the remote client. * 'pipe_command()' - Pipe the output of a command to the remote client.
*/ */
diff -up cups-1.4.4/scheduler/client.h.lspp cups-1.4.4/scheduler/client.h diff -up cups-1.4.5/scheduler/client.h.lspp cups-1.4.5/scheduler/client.h
--- cups-1.4.4/scheduler/client.h.lspp 2009-05-26 23:01:23.000000000 +0100 --- cups-1.4.5/scheduler/client.h.lspp 2009-05-27 00:01:23.000000000 +0200
+++ cups-1.4.4/scheduler/client.h 2010-06-18 09:38:22.711104323 +0100 +++ cups-1.4.5/scheduler/client.h 2010-11-12 13:31:27.000000000 +0100
@@ -18,6 +18,13 @@ @@ -18,6 +18,13 @@
#endif /* HAVE_AUTHORIZATION_H */ #endif /* HAVE_AUTHORIZATION_H */
@ -1514,9 +1513,9 @@ diff -up cups-1.4.4/scheduler/client.h.lspp cups-1.4.4/scheduler/client.h
/* /*
diff -up cups-1.4.4/scheduler/conf.c.lspp cups-1.4.4/scheduler/conf.c diff -up cups-1.4.5/scheduler/conf.c.lspp cups-1.4.5/scheduler/conf.c
--- cups-1.4.4/scheduler/conf.c.lspp 2010-06-18 09:38:22.526979999 +0100 --- cups-1.4.5/scheduler/conf.c.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/scheduler/conf.c 2010-06-18 09:38:22.713979624 +0100 +++ cups-1.4.5/scheduler/conf.c 2010-11-12 13:31:27.000000000 +0100
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
* read_configuration() - Read a configuration file. * read_configuration() - Read a configuration file.
* read_location() - Read a <Location path> definition. * read_location() - Read a <Location path> definition.
@ -1607,7 +1606,7 @@ diff -up cups-1.4.4/scheduler/conf.c.lspp cups-1.4.4/scheduler/conf.c
/* /*
* Check the MaxClients setting, and then allocate memory for it... * Check the MaxClients setting, and then allocate memory for it...
@@ -3644,6 +3686,18 @@ read_location(cups_file_t *fp, /* I - C @@ -3657,6 +3699,18 @@ read_location(cups_file_t *fp, /* I - C
return ((FatalErrors & CUPSD_FATAL_CONFIG) ? 0 : linenum); return ((FatalErrors & CUPSD_FATAL_CONFIG) ? 0 : linenum);
} }
@ -1626,9 +1625,9 @@ diff -up cups-1.4.4/scheduler/conf.c.lspp cups-1.4.4/scheduler/conf.c
/* /*
* 'read_policy()' - Read a <Policy name> definition. * 'read_policy()' - Read a <Policy name> definition.
diff -up cups-1.4.4/scheduler/conf.h.lspp cups-1.4.4/scheduler/conf.h diff -up cups-1.4.5/scheduler/conf.h.lspp cups-1.4.5/scheduler/conf.h
--- cups-1.4.4/scheduler/conf.h.lspp 2010-06-18 09:38:22.527979881 +0100 --- cups-1.4.5/scheduler/conf.h.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/scheduler/conf.h 2010-06-18 09:38:22.715979172 +0100 +++ cups-1.4.5/scheduler/conf.h 2010-11-12 13:31:27.000000000 +0100
@@ -250,6 +250,12 @@ VAR char *ServerKey VALUE(NULL); @@ -250,6 +250,12 @@ VAR char *ServerKey VALUE(NULL);
VAR int SSLOptions VALUE(CUPSD_SSL_NONE); VAR int SSLOptions VALUE(CUPSD_SSL_NONE);
/* SSL/TLS options */ /* SSL/TLS options */
@ -1652,9 +1651,9 @@ diff -up cups-1.4.4/scheduler/conf.h.lspp cups-1.4.4/scheduler/conf.h
/* /*
* Prototypes... * Prototypes...
diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c diff -up cups-1.4.5/scheduler/ipp.c.lspp cups-1.4.5/scheduler/ipp.c
--- cups-1.4.4/scheduler/ipp.c.lspp 2010-06-18 09:38:22.599103898 +0100 --- cups-1.4.5/scheduler/ipp.c.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/scheduler/ipp.c 2010-06-18 09:39:08.308979874 +0100 +++ cups-1.4.5/scheduler/ipp.c 2010-11-12 13:31:27.000000000 +0100
@@ -41,6 +41,7 @@ @@ -41,6 +41,7 @@
* cancel_all_jobs() - Cancel all print jobs. * cancel_all_jobs() - Cancel all print jobs.
* cancel_job() - Cancel a print job. * cancel_job() - Cancel a print job.
@ -1698,7 +1697,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
static int check_quotas(cupsd_client_t *con, cupsd_printer_t *p); static int check_quotas(cupsd_client_t *con, cupsd_printer_t *p);
static ipp_attribute_t *copy_attribute(ipp_t *to, ipp_attribute_t *attr, static ipp_attribute_t *copy_attribute(ipp_t *to, ipp_attribute_t *attr,
int quickcopy); int quickcopy);
@@ -1355,6 +1370,21 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1354,6 +1369,21 @@ add_job(cupsd_client_t *con, /* I - Cl
ipp_attribute_t *media_col, /* media-col attribute */ ipp_attribute_t *media_col, /* media-col attribute */
*media_margin; /* media-*-margin attribute */ *media_margin; /* media-*-margin attribute */
ipp_t *unsup_col; /* media-col in unsupported response */ ipp_t *unsup_col; /* media-col in unsupported response */
@ -1720,7 +1719,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_job(%p[%d], %p(%s), %p(%s/%s))", cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_job(%p[%d], %p(%s), %p(%s/%s))",
@@ -1625,6 +1655,104 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1612,6 +1642,104 @@ add_job(cupsd_client_t *con, /* I - Cl
ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL,
"Untitled"); "Untitled");
@ -1825,7 +1824,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
if ((job = cupsdAddJob(priority, printer->name)) == NULL) if ((job = cupsdAddJob(priority, printer->name)) == NULL)
{ {
send_ipp_status(con, IPP_INTERNAL_ERROR, send_ipp_status(con, IPP_INTERNAL_ERROR,
@@ -1633,6 +1761,32 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1620,6 +1748,32 @@ add_job(cupsd_client_t *con, /* I - Cl
return (NULL); return (NULL);
} }
@ -1858,7 +1857,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
job->dtype = printer->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_IMPLICIT | job->dtype = printer->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_IMPLICIT |
CUPS_PRINTER_REMOTE); CUPS_PRINTER_REMOTE);
job->attrs = con->request; job->attrs = con->request;
@@ -1838,6 +1992,29 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1825,6 +1979,29 @@ add_job(cupsd_client_t *con, /* I - Cl
attr->values[0].string.text = _cupsStrRetain(printer->job_sheets[0]); attr->values[0].string.text = _cupsStrRetain(printer->job_sheets[0]);
attr->values[1].string.text = _cupsStrRetain(printer->job_sheets[1]); attr->values[1].string.text = _cupsStrRetain(printer->job_sheets[1]);
} }
@ -1888,7 +1887,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
job->job_sheets = attr; job->job_sheets = attr;
@@ -1868,6 +2045,9 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1855,6 +2032,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-sheets=\"%s,none\", " "job-sheets=\"%s,none\", "
"job-originating-user-name=\"%s\"", "job-originating-user-name=\"%s\"",
Classification, job->username); Classification, job->username);
@ -1898,7 +1897,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
} }
else if (attr->num_values == 2 && else if (attr->num_values == 2 &&
strcmp(attr->values[0].string.text, strcmp(attr->values[0].string.text,
@@ -1886,6 +2066,9 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1873,6 +2053,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-originating-user-name=\"%s\"", "job-originating-user-name=\"%s\"",
attr->values[0].string.text, attr->values[0].string.text,
attr->values[1].string.text, job->username); attr->values[1].string.text, job->username);
@ -1908,7 +1907,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
} }
else if (strcmp(attr->values[0].string.text, Classification) && else if (strcmp(attr->values[0].string.text, Classification) &&
strcmp(attr->values[0].string.text, "none") && strcmp(attr->values[0].string.text, "none") &&
@@ -1906,6 +2089,9 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1893,6 +2076,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-originating-user-name=\"%s\"", "job-originating-user-name=\"%s\"",
attr->values[0].string.text, attr->values[0].string.text,
attr->values[1].string.text, job->username); attr->values[1].string.text, job->username);
@ -1918,7 +1917,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
} }
} }
else if (strcmp(attr->values[0].string.text, Classification) && else if (strcmp(attr->values[0].string.text, Classification) &&
@@ -1946,8 +2132,52 @@ add_job(cupsd_client_t *con, /* I - Cl @@ -1933,8 +2119,52 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-sheets=\"%s\", " "job-sheets=\"%s\", "
"job-originating-user-name=\"%s\"", "job-originating-user-name=\"%s\"",
Classification, job->username); Classification, job->username);
@ -1971,7 +1970,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
/* /*
* See if we need to add the starting sheet... * See if we need to add the starting sheet...
@@ -4300,6 +4530,103 @@ check_rss_recipient( @@ -4289,6 +4519,103 @@ check_rss_recipient(
} }
@ -2075,7 +2074,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
/* /*
* 'check_quotas()' - Check quotas for a printer and user. * 'check_quotas()' - Check quotas for a printer and user.
*/ */
@@ -4853,6 +5180,15 @@ copy_banner(cupsd_client_t *con, /* I - @@ -4843,6 +5170,15 @@ copy_banner(cupsd_client_t *con, /* I -
char attrname[255], /* Name of attribute */ char attrname[255], /* Name of attribute */
*s; /* Pointer into name */ *s; /* Pointer into name */
ipp_attribute_t *attr; /* Attribute */ ipp_attribute_t *attr; /* Attribute */
@ -2091,7 +2090,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
cupsdLogMessage(CUPSD_LOG_DEBUG2, cupsdLogMessage(CUPSD_LOG_DEBUG2,
@@ -4888,6 +5224,82 @@ copy_banner(cupsd_client_t *con, /* I - @@ -4878,6 +5214,82 @@ copy_banner(cupsd_client_t *con, /* I -
fchmod(cupsFileNumber(out), 0640); fchmod(cupsFileNumber(out), 0640);
fchown(cupsFileNumber(out), RunUser, Group); fchown(cupsFileNumber(out), RunUser, Group);
@ -2174,7 +2173,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
/* /*
* Try the localized banner file under the subdirectory... * Try the localized banner file under the subdirectory...
@@ -4982,6 +5394,24 @@ copy_banner(cupsd_client_t *con, /* I - @@ -4972,6 +5384,24 @@ copy_banner(cupsd_client_t *con, /* I -
else else
s = attrname; s = attrname;
@ -2199,7 +2198,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
if (!strcmp(s, "printer-name")) if (!strcmp(s, "printer-name"))
{ {
cupsFilePuts(out, job->dest); cupsFilePuts(out, job->dest);
@@ -6940,6 +7370,22 @@ get_job_attrs(cupsd_client_t *con, /* I @@ -6945,6 +7375,22 @@ get_job_attrs(cupsd_client_t *con, /* I
return; return;
} }
@ -2222,7 +2221,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
/* /*
* Copy attributes... * Copy attributes...
*/ */
@@ -7170,6 +7616,11 @@ get_jobs(cupsd_client_t *con, /* I - C @@ -7175,6 +7621,11 @@ get_jobs(cupsd_client_t *con, /* I - C
if (username[0] && strcasecmp(username, job->username)) if (username[0] && strcasecmp(username, job->username))
continue; continue;
@ -2234,7 +2233,7 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
if (count > 0) if (count > 0)
ippAddSeparator(con->response); ippAddSeparator(con->response);
@@ -11572,6 +12023,11 @@ validate_user(cupsd_job_t *job, /* I @@ -11594,6 +12045,11 @@ validate_user(cupsd_job_t *job, /* I
strlcpy(username, get_username(con), userlen); strlcpy(username, get_username(con), userlen);
@ -2246,9 +2245,9 @@ diff -up cups-1.4.4/scheduler/ipp.c.lspp cups-1.4.4/scheduler/ipp.c
/* /*
* Check the username against the owner... * Check the username against the owner...
*/ */
diff -up cups-1.4.4/scheduler/job.c.lspp cups-1.4.4/scheduler/job.c diff -up cups-1.4.5/scheduler/job.c.lspp cups-1.4.5/scheduler/job.c
--- cups-1.4.4/scheduler/job.c.lspp 2010-06-18 09:38:22.629104109 +0100 --- cups-1.4.5/scheduler/job.c.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/scheduler/job.c 2010-06-18 09:38:22.734978722 +0100 +++ cups-1.4.5/scheduler/job.c 2010-11-12 13:31:27.000000000 +0100
@@ -66,6 +66,9 @@ @@ -66,6 +66,9 @@
* update_job_attrs() - Update the job-printer-* attributes. * update_job_attrs() - Update the job-printer-* attributes.
*/ */
@ -2495,7 +2494,7 @@ diff -up cups-1.4.4/scheduler/job.c.lspp cups-1.4.4/scheduler/job.c
job->attrs->state = IPP_IDLE; job->attrs->state = IPP_IDLE;
if (ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL, if (ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL,
@@ -3188,6 +3360,18 @@ get_options(cupsd_job_t *job, /* I - Jo @@ -3332,6 +3504,18 @@ get_options(cupsd_job_t *job, /* I - Jo
banner_page) banner_page)
continue; continue;
@ -2514,7 +2513,7 @@ diff -up cups-1.4.4/scheduler/job.c.lspp cups-1.4.4/scheduler/job.c
/* /*
* Otherwise add them to the list... * Otherwise add them to the list...
*/ */
@@ -3860,6 +4044,19 @@ static void @@ -4020,6 +4204,19 @@ static void
start_job(cupsd_job_t *job, /* I - Job ID */ start_job(cupsd_job_t *job, /* I - Job ID */
cupsd_printer_t *printer) /* I - Printer to print job */ cupsd_printer_t *printer) /* I - Printer to print job */
{ {
@ -2534,7 +2533,7 @@ diff -up cups-1.4.4/scheduler/job.c.lspp cups-1.4.4/scheduler/job.c
cupsdLogMessage(CUPSD_LOG_DEBUG2, "start_job(job=%p(%d), printer=%p(%s))", cupsdLogMessage(CUPSD_LOG_DEBUG2, "start_job(job=%p(%d), printer=%p(%s))",
job, job->id, printer, printer->name); job, job->id, printer, printer->name);
@@ -3982,6 +4179,106 @@ start_job(cupsd_job_t *job, /* I - @@ -4142,6 +4339,106 @@ start_job(cupsd_job_t *job, /* I -
fcntl(job->side_pipes[1], F_SETFD, fcntl(job->side_pipes[1], F_SETFD,
fcntl(job->side_pipes[1], F_GETFD) | FD_CLOEXEC); fcntl(job->side_pipes[1], F_GETFD) | FD_CLOEXEC);
@ -2641,9 +2640,9 @@ diff -up cups-1.4.4/scheduler/job.c.lspp cups-1.4.4/scheduler/job.c
/* /*
* Now start the first file in the job... * Now start the first file in the job...
*/ */
diff -up cups-1.4.4/scheduler/job.h.lspp cups-1.4.4/scheduler/job.h diff -up cups-1.4.5/scheduler/job.h.lspp cups-1.4.5/scheduler/job.h
--- cups-1.4.4/scheduler/job.h.lspp 2009-05-11 23:46:01.000000000 +0100 --- cups-1.4.5/scheduler/job.h.lspp 2009-05-12 00:46:01.000000000 +0200
+++ cups-1.4.4/scheduler/job.h 2010-06-18 09:38:22.734978722 +0100 +++ cups-1.4.5/scheduler/job.h 2010-11-12 13:31:27.000000000 +0100
@@ -13,6 +13,13 @@ @@ -13,6 +13,13 @@
* file is missing or damaged, see the license at "http://www.cups.org/". * file is missing or damaged, see the license at "http://www.cups.org/".
*/ */
@ -2669,9 +2668,9 @@ diff -up cups-1.4.4/scheduler/job.h.lspp cups-1.4.4/scheduler/job.h
}; };
typedef struct cupsd_joblog_s /**** Job log message ****/ typedef struct cupsd_joblog_s /**** Job log message ****/
diff -up cups-1.4.4/scheduler/main.c.lspp cups-1.4.4/scheduler/main.c diff -up cups-1.4.5/scheduler/main.c.lspp cups-1.4.5/scheduler/main.c
--- cups-1.4.4/scheduler/main.c.lspp 2010-06-18 09:38:22.574980424 +0100 --- cups-1.4.5/scheduler/main.c.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/scheduler/main.c 2010-06-18 09:39:26.548103442 +0100 +++ cups-1.4.5/scheduler/main.c 2010-11-12 13:31:27.000000000 +0100
@@ -37,6 +37,8 @@ @@ -37,6 +37,8 @@
* usage() - Show scheduler usage. * usage() - Show scheduler usage.
*/ */
@ -2727,7 +2726,7 @@ diff -up cups-1.4.4/scheduler/main.c.lspp cups-1.4.4/scheduler/main.c
/* /*
* Set the timezone info... * Set the timezone info...
*/ */
@@ -1214,6 +1241,11 @@ main(int argc, /* I - Number of comm @@ -1219,6 +1246,11 @@ main(int argc, /* I - Number of comm
cupsdStopSelect(); cupsdStopSelect();
@ -2739,9 +2738,9 @@ diff -up cups-1.4.4/scheduler/main.c.lspp cups-1.4.4/scheduler/main.c
return (!stop_scheduler); return (!stop_scheduler);
} }
diff -up cups-1.4.4/scheduler/printers.c.lspp cups-1.4.4/scheduler/printers.c diff -up cups-1.4.5/scheduler/printers.c.lspp cups-1.4.5/scheduler/printers.c
--- cups-1.4.4/scheduler/printers.c.lspp 2010-06-18 09:38:22.556104527 +0100 --- cups-1.4.5/scheduler/printers.c.lspp 2010-11-12 13:31:27.000000000 +0100
+++ cups-1.4.4/scheduler/printers.c 2010-06-18 09:38:22.740980299 +0100 +++ cups-1.4.5/scheduler/printers.c 2010-11-12 13:31:27.000000000 +0100
@@ -59,6 +59,8 @@ @@ -59,6 +59,8 @@
* write_xml_string() - Write a string with XML escaping. * write_xml_string() - Write a string with XML escaping.
*/ */
@ -2751,7 +2750,7 @@ diff -up cups-1.4.4/scheduler/printers.c.lspp cups-1.4.4/scheduler/printers.c
/* /*
* Include necessary headers... * Include necessary headers...
*/ */
@@ -88,6 +90,10 @@ static void write_irix_state(cupsd_print @@ -103,6 +105,10 @@ static void write_irix_state(cupsd_print
#endif /* __sgi */ #endif /* __sgi */
static void write_xml_string(cups_file_t *fp, const char *s); static void write_xml_string(cups_file_t *fp, const char *s);
@ -2762,7 +2761,7 @@ diff -up cups-1.4.4/scheduler/printers.c.lspp cups-1.4.4/scheduler/printers.c
/* /*
* 'cupsdAddPrinter()' - Add a printer to the system. * 'cupsdAddPrinter()' - Add a printer to the system.
@@ -2211,6 +2217,13 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p) @@ -2266,6 +2272,13 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
"username", "username",
"password" "password"
}; };
@ -2776,7 +2775,7 @@ diff -up cups-1.4.4/scheduler/printers.c.lspp cups-1.4.4/scheduler/printers.c
DEBUG_printf(("cupsdSetPrinterAttrs: entering name = %s, type = %x\n", p->name, DEBUG_printf(("cupsdSetPrinterAttrs: entering name = %s, type = %x\n", p->name,
@@ -2341,6 +2354,45 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p) @@ -2396,6 +2409,45 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
attr->values[1].string.text = _cupsStrAlloc(Classification ? attr->values[1].string.text = _cupsStrAlloc(Classification ?
Classification : p->job_sheets[1]); Classification : p->job_sheets[1]);
} }
@ -2822,7 +2821,7 @@ diff -up cups-1.4.4/scheduler/printers.c.lspp cups-1.4.4/scheduler/printers.c
} }
p->raw = 0; p->raw = 0;
@@ -5320,7 +5372,6 @@ write_irix_state(cupsd_printer_t *p) /* @@ -5535,7 +5587,6 @@ write_irix_state(cupsd_printer_t *p) /*
} }
#endif /* __sgi */ #endif /* __sgi */

View File

@ -1,6 +1,6 @@
diff -up cups-1.4.4/filter/pstops.c.page-label cups-1.4.4/filter/pstops.c diff -up cups-1.4.5/filter/pstops.c.page-label cups-1.4.5/filter/pstops.c
--- cups-1.4.4/filter/pstops.c.page-label 2010-03-30 23:07:33.000000000 +0100 --- cups-1.4.5/filter/pstops.c.page-label 2010-08-31 20:36:08.000000000 +0200
+++ cups-1.4.4/filter/pstops.c 2010-06-18 09:36:18.239126341 +0100 +++ cups-1.4.5/filter/pstops.c 2010-11-12 13:11:11.000000000 +0100
@@ -108,6 +108,7 @@ typedef struct /**** Document informa @@ -108,6 +108,7 @@ typedef struct /**** Document informa
int num_options; /* Number of document-wide options */ int num_options; /* Number of document-wide options */
cups_option_t *options; /* Document-wide options */ cups_option_t *options; /* Document-wide options */
@ -77,8 +77,8 @@ diff -up cups-1.4.4/filter/pstops.c.page-label cups-1.4.4/filter/pstops.c
doc_puts(doc, "ESPshowpage\n"); doc_puts(doc, "ESPshowpage\n");
} }
break; break;
@@ -2420,6 +2444,12 @@ set_pstops_options( @@ -2433,6 +2457,12 @@ set_pstops_options(
doc->new_bounding_box[3] = INT_MIN; Orientation = 0;
/* /*
+ * Save original orientation of the document + * Save original orientation of the document

View File

@ -1,39 +0,0 @@
diff -up cups-1.4.4/scheduler/ipp.c.str3608 cups-1.4.4/scheduler/ipp.c
--- cups-1.4.4/scheduler/ipp.c.str3608 2010-08-20 11:36:58.490089326 +0100
+++ cups-1.4.4/scheduler/ipp.c 2010-08-20 11:37:11.965213877 +0100
@@ -1245,7 +1245,7 @@ add_class(cupsd_client_t *con, /* I -
if (modify)
{
- cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED | CUPSD_EVENT_PRINTER_CONFIG,
+ cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED,
pclass, NULL, "Class \"%s\" modified by \"%s\".",
pclass->name, get_username(con));
@@ -1256,7 +1256,7 @@ add_class(cupsd_client_t *con, /* I -
{
cupsdAddPrinterHistory(pclass);
- cupsdAddEvent(CUPSD_EVENT_PRINTER_ADDED | CUPSD_EVENT_PRINTER_CONFIG,
+ cupsdAddEvent(CUPSD_EVENT_PRINTER_ADDED,
pclass, NULL, "New class \"%s\" added by \"%s\".",
pclass->name, get_username(con));
@@ -3034,7 +3034,7 @@ add_printer(cupsd_client_t *con, /* I -
if (modify)
{
- cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED | CUPSD_EVENT_PRINTER_CONFIG,
+ cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED,
printer, NULL, "Printer \"%s\" modified by \"%s\".",
printer->name, get_username(con));
@@ -3045,7 +3045,7 @@ add_printer(cupsd_client_t *con, /* I -
{
cupsdAddPrinterHistory(printer);
- cupsdAddEvent(CUPSD_EVENT_PRINTER_ADDED | CUPSD_EVENT_PRINTER_CONFIG,
+ cupsdAddEvent(CUPSD_EVENT_PRINTER_ADDED,
printer, NULL, "New printer \"%s\" added by \"%s\".",
printer->name, get_username(con));

View File

@ -7,8 +7,8 @@
Summary: Common Unix Printing System Summary: Common Unix Printing System
Name: cups Name: cups
Version: 1.4.4 Version: 1.4.5
Release: 11%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
Group: System Environment/Daemons Group: System Environment/Daemons
Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
@ -66,14 +66,10 @@ Patch34: cups-hp-deviceid-oid.patch
Patch35: cups-dnssd-deviceid.patch Patch35: cups-dnssd-deviceid.patch
Patch36: cups-ricoh-deviceid-oid.patch Patch36: cups-ricoh-deviceid-oid.patch
Patch37: cups-texttops-rotate-page.patch Patch37: cups-texttops-rotate-page.patch
Patch38: cups-str3608.patch Patch38: cups-autotype-crash.patch
Patch39: cups-autotype-crash.patch
Patch100: cups-lspp.patch Patch100: cups-lspp.patch
## SECURITY PATCHES:
Patch200: cups-CVE-2010-2941.patch
Epoch: 1 Epoch: 1
Url: http://www.cups.org/ Url: http://www.cups.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -278,21 +274,14 @@ module.
# This fixes page-label orientation when texttops is used in the # This fixes page-label orientation when texttops is used in the
# filter chain (bug #572338). # filter chain (bug #572338).
%patch37 -p1 -b .texttops-rotate-page %patch37 -p1 -b .texttops-rotate-page
# Avoid empty notify-subscribed-event attributes (bug #606909, STR
# #3608).
%patch38 -p1 -b .str3608
# Don't crash when MIME database could not be loaded (bug #610088). # Don't crash when MIME database could not be loaded (bug #610088).
%patch39 -p1 -b .autotype-crash %patch38 -p1 -b .autotype-crash
%if %lspp %if %lspp
# LSPP support. # LSPP support.
%patch100 -p1 -b .lspp %patch100 -p1 -b .lspp
%endif %endif
# SECURITY PATCHES:
# Fix cupsd memory corruption vulnerability (CVE-2010-2941, bug #652161).
%patch200 -p1 -b .CVE-2010-2941
sed -i -e '1iMaxLogSize 0' conf/cupsd.conf.in sed -i -e '1iMaxLogSize 0' conf/cupsd.conf.in
cp %{SOURCE5} cups-lpd.real cp %{SOURCE5} cups-lpd.real
@ -584,6 +573,10 @@ rm -rf $RPM_BUILD_ROOT
%{php_extdir}/phpcups.so %{php_extdir}/phpcups.so
%changelog %changelog
* Fri Nov 12 2010 Jiri Popelka <jpopelka@redhat.com> 1:1.4.5-1
- 1.4.5.
- No longer need CVE-2010-2941, str3608
* Thu Nov 11 2010 Tim Waugh <twaugh@redhat.com> 1:1.4.4-11 * Thu Nov 11 2010 Tim Waugh <twaugh@redhat.com> 1:1.4.4-11
- Applied patch to fix cupsd memory corruption vulnerability - Applied patch to fix cupsd memory corruption vulnerability
(CVE-2010-2941, bug #652161). (CVE-2010-2941, bug #652161).

View File

@ -1 +1 @@
8776403ad60fea9e85eab9c04d88560d cups-1.4.4-source.tar.bz2 50729f6fc46ba54223e0eaf5009f3419 cups-1.4.5-source.tar.bz2