Wrong version 1.00 of libmagic

Bug #1339186 reported by yannick.chevalier@gmail.com on 2014-07-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
file (Ubuntu)

Bug Description

The version 1.0.0 of libmagic distributed in the git of "file" (http://www.darwinsys.com/file) differs slightly from the one shipped by ubuntu (which is also versioned 1.0.0). At least one difference is that the magic_descriptor function in the former restores the position in the file whose fd has been passed, while the latter seems to be based on the https://github.com/aidansteele/MagicKit/tree/master/libmagic version of libmagic, which closes the file descriptor (see e.g. the close_and_restore function in magic.c).
I believe that the "file" version makes much more sense, as using magic_descriptor implies that the programmer passes the fd of an opened file, and has no reasons to expect that this function will close this fd.
Is it possible to change to this one ?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers