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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1339186

Title:
  Wrong version 1.00 of libmagic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/1339186/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to