http://bugzilla.novell.com/show_bug.cgi?id=500511 Summary: file magic fails to recognize some zip-2.0 files Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jw@novell.com QAContact: qa@suse.de Found By: --- $ zip mimetest.zip mimetest.png using the attached png file, results in a zip file which is $ file mimetest.zip mimetest.zip: data This is due to an unfortunate subtest in /usr/share/misc/magic (after the PK magic:)
4 byte 0x14
30 ubelong !0x6d696d65 Zip archive data, at least v2.0 to extract !:mime application/zip
which means, that any compressed filename starting with 'mime' is not recognized. This test is probably intended to capture zip files, which need special handling ontop of unzipping, and want to provide an own mimetype for this. Example: http://www.gutenberg.org/cache/epub/4763/pg4763.epub I suggest to patch the above code to read
4 byte 0x14
30 ubelong !0x6d696d65 Zip archive data, at least v2.0 to extract !:mime application/zip 30 ubelong 0x6d696d65 Zip archive data, at least v2.0 to extract !:mime application/zip+extra-mime
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.