file-4.24 no longer recognizes .Z files (classical Unix compress files)

Christos Zoulas christos at zoulas.com
Thu May 22 22:03:30 EEST 2008


On May 22,  8:32pm, Mark.Martinec+amavis at ijs.si (Mark Martinec) wrote:
-- Subject: file-4.24 no longer recognizes .Z files (classical Unix compress 

| Christos,
| 
| Tod A. Sandman has reported on the amavis-user mailing list that
| the file-4.24 no longer recognizes classical Unix compressed files
| (the .Z files). I checked today and can confirm the problem:
| 
| $ /usr/bin/file *.lis*  # older version of 'file'
| 9.lis.Z:  compress'd data 9 bits
| 10.lis.Z: compress'd data 10 bits
| 11.lis.Z: compress'd data 11 bits
| 12.lis.Z: compress'd data 12 bits
| 13.lis.Z: compress'd data 13 bits
| 14.lis.Z: compress'd data 14 bits
| 15.lis.Z: compress'd data 15 bits
| 16.lis.Z: compress'd data 16 bits
| 
| $ file --version  # new one
| file-4.24
| magic file from /usr/local/share/file/magic
| $ file *.lis*
| 9.lis.Z:  data
| 10.lis.Z: data
| 11.lis.Z: data
| 12.lis.Z: data
| 13.lis.Z: data
| 14.lis.Z: data
| 15.lis.Z: data
| 16.lis.Z: data
| 
| These test files were just some plain text files compressed
| with a Unix or Linux 'compress' command. The result is the
| same regardless of the value of option -b (bits, 9..16).
| 
| It would be nice to get this fixed by the next version.
| 
| (please drop my previous posting waiting for moderation,
| I used a wrong sending address).

Fixed, thanks; it was broken by the following change; just patch -R it.

christos

Index: compress
===================================================================
RCS file: /p/file/cvsroot/file/magic/Magdir/compress,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- compress	4 Feb 2008 16:33:45 -0000	1.30
+++ compress	5 Feb 2008 01:59:08 -0000	1.31
@@ -9,8 +9,8 @@
 # because it tries to uncompress it to figure out what's inside.
 
 # standard unix compress
-0	string		\037\235	compress'd data
-!:mime	application/x-compress
+#0	string		\037\235	compress'd data
+#!:mime	application/x-compress
 >2	byte&0x80	>0		block compressed
 >2	byte&0x1f	x		%d bits
 



More information about the File mailing list