[Bug 195990] file: File 5.19 supports only version 12 magic files. `/usr/share/misc/magic.mgc' is version 8
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Feb 4 15:07:34 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195990
Ryder <rtd24 at columbia.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rtd24 at columbia.edu
--- Comment #7 from Ryder <rtd24 at columbia.edu> ---
Minor update: this is still broken for file-5.22 and 10.1-RELEASE-p5.
This also breaks py-magic, which is what led me here.
Try:
>>> import magic
>>> m = magic.open(magic.MAGIC_MIME)
>>> m.load()
Result:
...same errors as with file(1), ending with
/usr/share/misc/magic, 17382: Warning: Printf format `l' is not valid for type
`byte' in description `- version %ld'
Thanks for the workaround. For fixing py27-magic, I can pass it the port
version's magic file instead, like so:
>>> m.load('/usr/local/share/file/magic')
0
>>> m.file('.macromedia')
'inode/directory; charset=binary'
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list