Page MenuHomeSolus

Update file to 5.37

Authored by Girtablulu on May 19 2019, 4:56 PM.



Update file to 5.37


  • Make sure that continuation separators are printed with -k within softmagic
  • Change SIGPIPE saving and restoring during compression to use sigaction(2) instead of signal(3) and cache it.
  • Cache stat(2) calls more to reduce number of calls
  • Handle --mime-type and -k correctly.
  • Switch decompression code to use vfork() because tools like rpmdiff and rpmbuild call libmagic with large process footprints
  • --enable-zlib, did not work.
  • Improve regex efficiency
Test Plan
$ file file-5.37-18-1-x86_64.eopkg 
file-5.37-18-1-x86_64.eopkg: Zip archive data, at least v2.0 to extract
$ file package.yml 
package.yml: ASCII text
$ file --version 
magic file from /usr/share/file/magic

Diff Detail

R750 file
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Girtablulu created this revision.May 19 2019, 4:56 PM
Girtablulu requested review of this revision.May 19 2019, 4:56 PM
DataDrake accepted this revision.May 19 2019, 5:17 PM
DataDrake added a subscriber: DataDrake.

LGTM. Thanks!

This revision is now accepted and ready to land.May 19 2019, 5:17 PM
This revision was automatically updated to reflect the committed changes.