Description of problem:
on RHEL6 file -z cannot extract bzip2 archives when using -z option
$ file -z gfs1partition.bz2
gfs1partition.bz2: data (bzip2 compressed data, block size = 900k)
this is working on RHEL5:
:: [ PASS ] :: Running 'file -z gfs1partition.bz2 &> log1'
gfs1partition.bz2: Linux GFS1 Filesystem (blocksize 4096, lockproto lock_nolock) (bzip2 compressed data, block size = 900k)
also tested with file-5.04-11.el6 and file-5.04-13.el6, still not working.
It's bug file-5.x branch caused by addition of built-in zlib decompressing support.
Created attachment 602653 [details]
Upstream bug report: http://bugs.gw.com/view.php?id=192
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Cause: Because of bad condition in File code, File used read timeout when decompressing files using file -z parameter.
Consequence: File was not able to detect files compressed by bzip2.
Fix: Bad condition has been fixed and file now doesn't use timeout when decompressing compressed files.
Result: File now detects compressed file when using -z parameter as expected.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.