- Fixed document-format-supported attribute when application/octet-stream
is enabled (bug #516507, STR #3308, patch from Jiri Popelka).
This commit is contained in:
parent
366cb971f0
commit
28e7feb030
29
cups-str3308.patch
Normal file
29
cups-str3308.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
diff -up cups-1.4rc1/scheduler/printers.c.str3308 cups-1.4rc1/scheduler/printers.c
|
||||||
|
--- cups-1.4rc1/scheduler/printers.c.str3308 2009-08-26 18:16:22.948769384 +0100
|
||||||
|
+++ cups-1.4rc1/scheduler/printers.c 2009-08-26 18:16:23.649770491 +0100
|
||||||
|
@@ -3718,10 +3718,6 @@ add_printer_formats(cupsd_printer_t *p)
|
||||||
|
p->name, mimetype);
|
||||||
|
}
|
||||||
|
|
||||||
|
- cupsdLogMessage(CUPSD_LOG_DEBUG2,
|
||||||
|
- "add_printer_formats: %s: %d supported types",
|
||||||
|
- p->name, cupsArrayCount(p->filetypes) + 1);
|
||||||
|
-
|
||||||
|
/*
|
||||||
|
* Add the file formats that can be filtered...
|
||||||
|
*/
|
||||||
|
@@ -3732,9 +3728,13 @@ add_printer_formats(cupsd_printer_t *p)
|
||||||
|
else
|
||||||
|
i = 0;
|
||||||
|
|
||||||
|
+ cupsdLogMessage(CUPSD_LOG_DEBUG2,
|
||||||
|
+ "add_printer_formats: %s: %d supported types",
|
||||||
|
+ p->name, cupsArrayCount(p->filetypes) + i);
|
||||||
|
+
|
||||||
|
attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_MIMETYPE,
|
||||||
|
"document-format-supported",
|
||||||
|
- cupsArrayCount(p->filetypes) + 1, NULL, NULL);
|
||||||
|
+ cupsArrayCount(p->filetypes) + i, NULL, NULL);
|
||||||
|
|
||||||
|
if (i)
|
||||||
|
attr->values[0].string.text = _cupsStrAlloc("application/octet-stream");
|
@ -69,6 +69,7 @@ Patch41: cups-str3279.patch
|
|||||||
Patch42: cups-str3287.patch
|
Patch42: cups-str3287.patch
|
||||||
Patch43: cups-str3292.patch
|
Patch43: cups-str3292.patch
|
||||||
Patch44: cups-str3293.patch
|
Patch44: cups-str3293.patch
|
||||||
|
Patch45: cups-str3308.patch
|
||||||
Patch100: cups-lspp.patch
|
Patch100: cups-lspp.patch
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
@ -238,6 +239,7 @@ module.
|
|||||||
%patch42 -p1 -b .str3287
|
%patch42 -p1 -b .str3287
|
||||||
%patch43 -p1 -b .str3292
|
%patch43 -p1 -b .str3292
|
||||||
%patch44 -p1 -b .str3293
|
%patch44 -p1 -b .str3293
|
||||||
|
%patch45 -p1 -b .str3308
|
||||||
|
|
||||||
%if %lspp
|
%if %lspp
|
||||||
%patch100 -p1 -b .lspp
|
%patch100 -p1 -b .lspp
|
||||||
@ -533,6 +535,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Aug 26 2009 Tim Waugh <twaugh@redhat.com> 1:1.4-0.rc1.18
|
* Wed Aug 26 2009 Tim Waugh <twaugh@redhat.com> 1:1.4-0.rc1.18
|
||||||
|
- Fixed document-format-supported attribute when
|
||||||
|
application/octet-stream is enabled (bug #516507, STR #3308, patch
|
||||||
|
from Jiri Popelka).
|
||||||
- Fixed buggy JobKillDelay handling fix (STR #3292).
|
- Fixed buggy JobKillDelay handling fix (STR #3292).
|
||||||
- Prevent infinite loop in ppdc (STR #3293).
|
- Prevent infinite loop in ppdc (STR #3293).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user