SHA256
1
0
forked from pool/file
Dr. Werner Fink 2011-07-18 10:03:46 +00:00 committed by Git OBS Bridge
parent 3747243ebd
commit 7fece2bee2
3 changed files with 30 additions and 0 deletions

23
file-5.07-zip.dif Normal file
View File

@ -0,0 +1,23 @@
--- magic/Magdir/archive
+++ magic/Magdir/archive 2011-07-18 09:56:50.651926085 +0000
@@ -571,6 +571,20 @@
# Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
0 string PK\003\004
+>30 ubelong !0x6d696d65
+>>4 byte 0x00 Zip archive data
+!:mime application/zip
+>>4 byte 0x09 Zip archive data, at least v0.9 to extract
+!:mime application/zip
+>>4 byte 0x0a Zip archive data, at least v1.0 to extract
+!:mime application/zip
+>>4 byte 0x0b Zip archive data, at least v1.1 to extract
+!:mime application/zip
+>>0x161 string WINZIP Zip archive data, WinZIP self-extracting
+!:mime application/zip
+>>4 byte 0x14 Zip archive data, at least v2.0 to extract
+!:mime application/zip
+
# Specialised zip formats which start with a member named 'mimetype'
# (stored uncompressed, with no 'extra field') containing the file's MIME type.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 18 12:00:20 CEST 2011 - werner@suse.de
- Fixed regression on zip archive detection (bnc#706310)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 14 19:50:04 CEST 2011 - werner@suse.de Tue Jun 14 19:50:04 CEST 2011 - werner@suse.de

View File

@ -44,6 +44,7 @@ Patch7: file-4.20-ssd.dif
Patch8: file-4.20-xen.dif Patch8: file-4.20-xen.dif
Patch9: file-5.07-elf.dif Patch9: file-5.07-elf.dif
Patch10: file-4.18-printf.dif Patch10: file-4.18-printf.dif
Patch11: file-5.07-zip.dif
Patch12: file-5.07-option.dif Patch12: file-5.07-option.dif
Patch13: file-4.21-scribus.dif Patch13: file-4.21-scribus.dif
Patch15: file-4.21-xcursor.dif Patch15: file-4.21-xcursor.dif
@ -104,6 +105,7 @@ Authors:
%patch8 -p0 -b .xen %patch8 -p0 -b .xen
%patch9 -p0 -b .elf %patch9 -p0 -b .elf
%patch10 -p0 -b .prtf %patch10 -p0 -b .prtf
%patch11 -p0 -b .zip
%patch12 -p0 -b .opt %patch12 -p0 -b .opt
%patch13 -p0 -b .scri %patch13 -p0 -b .scri
%patch15 -p0 -b .xcur %patch15 -p0 -b .xcur