FS#71130 - [file] file -mime misdetects cpio files
Attached to Project:
Arch Linux
Opened by Emil (xexaxo) - Friday, 04 June 2021, 20:39 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 19 October 2021, 00:27 GMT
Opened by Emil (xexaxo) - Friday, 04 June 2021, 20:39 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 19 October 2021, 00:27 GMT
|
Details
Description:
`file -mime foo.cpio` incorrectly detects the file as octet-stream. `file foo.cpio` seem smarter. Notices while hacking on mkinitcpio. Additional info: * package version(s) 5.40-5 * link to upstream bug report, if any https://bugs.astron.com/view.php?id=267 Steps to reproduce: echo test > test-file LANG=C bsdtar --uid 0 --gid 0 --null -cf - --format=newc test-file > foo.cpio file --mime foo.cpio foo.cpio: application/octet-stream; charset=binary <<< WRONG file foo.cpio foo.cpio: ASCII cpio archive (SVR4 with no CRC) <<< GOOD |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Tuesday, 19 October 2021, 00:27 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 5.41
Tuesday, 19 October 2021, 00:27 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 5.41
https://github.com/file/file/commit/ac8578e8916a274588ed1af0ed7dadac0bcc14fb