Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 2015 15:07:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195990] file: File 5.19 supports only version 12 magic files. `/usr/share/misc/magic.mgc' is version 8
Message-ID:  <bug-195990-8-Pm8hwSIo84@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195990-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195990-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195990

Ryder <rtd24@columbia.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rtd24@columbia.edu

--- Comment #7 from Ryder <rtd24@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195990-8-Pm8hwSIo84>