[File] magic-python patch

Vincent Mihalkovic vmihalko at redhat.com
Tue May 25 15:09:20 UTC 2021


Hi,

I'm trying to fix this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1963895.

Problem is that python bytecode mimetypes are wrongly detected. E.g.
$ file --mime-type -b
/usr/lib64/python3.9/site-packages/__pycache__/audit.cpython-39.pyc
$ text/x-bytecode.python
instead of
$ application/x-bytecode.python

This problem and fix for it was already listed by Steve Grubb in
 https://mailman.astron.com/pipermail/file/2020-November/000440.html
<https://mailman.astron.com/pipermail/file/2020-November/000440.html>.

I'm resending the patch he proposed.

vincent mihalkovic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20210525/22d940e1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.40-magic-python.patch
Type: text/x-patch
Size: 12329 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20210525/22d940e1/attachment.bin>


More information about the File mailing list