FS#76985 - [file] Upgrade to file v5.44 broke functionality that allows file to read the contents of gzips

Attached to Project: Arch Linux
Opened by David Rosenstrauch (darose) - Monday, 02 January 2023, 15:06 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 03 January 2023, 05:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The upgrade to file v5.44 broke functionality that allows file to read the contents of gzipped archives.


Using file 5.44-1:

$ file -bz --mime-type old/analyze/20210902.json.gz
application/x-decompression-error-zlib-Fork-is-required-to-uncompress--but-disabled


Using file 5.43-1:

$ file -bz --mime-type old/analyze/20210902.json.gz
application/x-ndjason
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 03 January 2023, 05:59 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Related  FS#65250   FS#76362 
Comment by loqs (loqs) - Monday, 02 January 2023, 19:43 GMT
You need to disable the sandbox with 5.44 to allow the de-compressor to fork https://github.com/file/file/commit/47382b33aa29dbcc9e8bf99df8320951c2e115d0
Comment by David Rosenstrauch (darose) - Monday, 02 January 2023, 20:48 GMT
Huh. OK, that seemed to work:

$ file -bSz --mime-type old/analyze/20200323.json.gz
application/x-ndjson

Didn't know that that "S" flag was now required. Thanks for the tip.