Am Tue, 16 Aug 2022 12:12:37 +0100 schrieb Robert Swindells <rjs%fdy2.co.uk@localhost>: > "Dr. Thomas Orgis" <thomas.orgis%uni-hamburg.de@localhost> wrote: > Not returning the specific MIME type for XZ looks to be a bug in the > original definition to me. > > In magic/magdir/compress, there is a blank line between the non-MIME > and the MIME lines for XZ. > > Putting a copy of the definition in ~/.magic with the blank line removed > makes it return "application/x-xz; charset=binary" for me. What did you exactly to achieve that? I patched the source and don't see improvement. bash-5.0$ diff -u magic/Magdir/compress{.orig,} --- magic/Magdir/compress.orig 2021-03-31 01:47:28.000000000 +0200 +++ magic/Magdir/compress 2022-08-17 11:10:34.768272830 +0200 @@ -269,7 +269,6 @@ >7 byte&0xf 0x1 CRC32 >7 byte&0xf 0x4 CRC64 >7 byte&0xf 0xa SHA-256 - !:strength * 2 !:mime application/x-xz [make for building the new database locally] $ file -m magic/magic.mgc -i adwaita-icon-theme-41.0.tar.xz adwaita-icon-theme-41.0.tar.xz: application/octet-stream; charset=binary Can you show me the exact magic source snipped you used (and then ran through file -C, I guess)? Alrighty then, Thomas -- Dr. Thomas Orgis Universität Hamburg RRZ / Basis-Infrastruktur / HPC Schlüterstr. 70 20146 Hamburg Tel.: 040/42838 8826 Fax: 040/428 38 6270
Attachment:
smime.p7s
Description: S/MIME cryptographic signature