Часть из /usr/share/file/magic: # ZIP archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu) 0 string PK\003\004 >4 byte 0x09 Zip archive data, at least v0.9 to extract >4 byte 0x0a Zip archive data, at least v1.0 to extract >4 byte 0x0b Zip archive data, at least v1.1 to extract >4 byte 0x14 >>30 ubelong !0x6d696d65 Zip archive data, at least v2.0 to extract >0x161 string WINZIP Zip archive data, WinZIP self-extracting # OpenOffice.org / KOffice / StarOffice documents # From: Abel Cheung <abel@oaka.org> # Listed here because they are basically zip files >>30 string mimetype Из за строчки с WINZIP не определяются OO.org документы. Эта строчка должна быть перенесена выше и быть как минимум над строкой >4 byte 0x14
И еще одна, но уже в /usr/share/file/magic.mime: $ grep "TIFF image data" /usr/share/file/magic 0 string MM\x00\x2a TIFF image data, big-endian 0 string II\x2a\x00 TIFF image data, little-endian $ grep -A4 "TIFF and friends" /usr/share/file/magic.mime # TIFF and friends # TIFF file, big-endian 0 string MM image/tiff # TIFF file, little-endian 0 string II image/tiff Проявялется вот так: $ head -3 README.TXT; file README.TXT; file -i README.TXT IIS Migration Wizard ===================== README.TXT: ASCII English text, with CRLF line terminators README.TXT: image/tiff
Исправлено в версии 4.25
Should be fixed in 4.26-alt1