FS#70261 - [file] file 5.40 reports incorrect compressed-encoding for xz files
Attached to Project:
Arch Linux
Opened by A. Bosch (progandy) - Friday, 02 April 2021, 12:46 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 10 May 2021, 12:12 GMT
Opened by A. Bosch (progandy) - Friday, 02 April 2021, 12:46 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 10 May 2021, 12:12 GMT
|
Details
Description:
File v5.40 displays incorrect an incorrect mime type for xz compressed files. This causes a problem with makepkg not being able to decrompress plain xz compressed source-files. See: https://bbs.archlinux.org/viewtopic.php?id=265115 Additional info: * package version(s) file 5.40-1 Steps to reproduce: $ file -v file-5.40 magic file from /usr/share/file/misc/magic seccomp support included $ echo "test" | xz - >test.xz $ file -b test.xz XZ compressed data, checksum CRC64 $ file -bi test.xz application/octet-stream; charset=binary Correct output with version 5.39: $ file -v file-5.39 magic file from /usr/share/file/misc/magic seccomp support included $ echo "test" | xz - >test.xz $ file -b test.xz XZ compressed data $ file -bi test.xz application/x-xz; charset=binary Attached is a patch that seems to fix it, the output seems to be correct: $ ./src/file -v -m magic/magic.mgc lt-file-5.40 ... (compiled from git tag FILE5_40 with my patch) $ ./src/file -S -bizL -m magic/magic.mgc test.xz text/plain; charset=us-ascii compressed-encoding=application/x-xz; charset=binary $ ./src/file -S -bzL -m magic/magic.mgc test.xz ASCII text (XZ compressed data, checksum CRC64) |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Monday, 10 May 2021, 12:12 GMT
Reason for closing: Fixed
Additional comments about closing: file-5.40-3
Monday, 10 May 2021, 12:12 GMT
Reason for closing: Fixed
Additional comments about closing: file-5.40-3
https://bugzilla.redhat.com/show_bug.cgi?id=1947317
https://src.fedoraproject.org/rpms/file/pull-request/9