From 2da5993abb66111ede09d89a4c91da6622d9727a Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Aug 10 2009 09:38:00 +0000 Subject: - Fixed MIME type rules for image/jpeg and image/x-bitmap (bug #516438, STR #3284). --- diff --git a/cups-str3284.patch b/cups-str3284.patch new file mode 100644 index 0000000..ae9a882 --- /dev/null +++ b/cups-str3284.patch @@ -0,0 +1,21 @@ +diff -up cups-1.4rc1/conf/mime.types.str3284 cups-1.4rc1/conf/mime.types +--- cups-1.4rc1/conf/mime.types.str3284 2009-05-17 00:48:35.000000000 +0100 ++++ cups-1.4rc1/conf/mime.types 2009-08-10 10:32:46.887840076 +0100 +@@ -95,7 +95,7 @@ application/vnd.hp-HPGL hpgl \ + + image/gif gif string(0,GIF87a) string(0,GIF89a) + image/png png string(0,<89>PNG) +-image/jpeg jpeg jpg jpe string(0,) &&\ ++image/jpeg jpeg jpg jpe string(0,) +\ + (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\ + char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\ + char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\ +@@ -114,7 +114,7 @@ image/x-sun-raster ras string(0,<59a66a + + #image/fpx fpx + image/x-alias pix short(8,8) short(8,24) +-image/x-bitmap bmp string(0,BM) && !printable(2,14) ++image/x-bitmap bmp string(0,BM) + !printable(2,14) + image/x-icon ico + + ######################################################################## diff --git a/cups.spec b/cups.spec index 6b83ebb..b1a4bb5 100644 --- a/cups.spec +++ b/cups.spec @@ -63,6 +63,7 @@ Patch35: cups-cups-get-classes.patch Patch36: cups-str3272.patch Patch37: cups-avahi.patch Patch38: cups-str3277.patch +Patch39: cups-str3284.patch Patch100: cups-lspp.patch Epoch: 1 Url: http://www.cups.org/ @@ -226,6 +227,7 @@ module. %patch36 -p1 -b .str3272 %patch37 -p1 -b .avahi %patch38 -p1 -b .str3277 +%patch39 -p1 -b .str3284 %if %lspp %patch100 -p1 -b .lspp @@ -520,7 +522,9 @@ rm -rf $RPM_BUILD_ROOT %{php_extdir}/phpcups.so %changelog -* Fri Aug 7 2009 Tim Waugh 1:1.4-0.rc1.14 +* Mon Aug 10 2009 Tim Waugh 1:1.4-0.rc1.14 +- Fixed MIME type rules for image/jpeg and image/x-bitmap + (bug #516438, STR #3284). - Clear out cache files on upgrade. - Require acl.