[Bug 1339186] [NEW] Wrong version 1.00 of libmagic
yannick.chevalier@gmail.com
1339186 at bugs.launchpad.net
Tue Jul 8 16:26:11 UTC 2014
Public bug reported:
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 ?
** Affects: file (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/1339186
Title:
Wrong version 1.00 of libmagic
Status in “file” package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/1339186/+subscriptions
More information about the foundations-bugs
mailing list