[File] [PATCH] Magdir/archive for CAZIP compressed file *.??_

Christos Zoulas christos at zoulas.com
Sat Oct 30 16:52:09 UTC 2021


Committed, thanks!

christos

> On Oct 29, 2021, at 8:18 PM, Jörg Jenderek <joerg.jen.der.ek at gmx.net> wrote:
> 
> Hello,
> 
> some times ago i installed an old DOS software. In installation
> directory are files with underscore as last character of file name
> extension.
> 
> When running running file command version 5.41 on such compressed
> files and the related unpacked files i get an output like:
> 
> BLINKER.WRI:  Microsoft Write 3.0 (Windows) Document,
> 	      115 pages,
> 	      Free T-shirts and up to 50% savings!
> BLINKER.WR_:  data
> CAOSETUP.EX_: data
> CLIPDEFS.H:   C source, ASCII text, with CRLF line terminators
> CLIPDEFS._:   data
> CLIPPER.EXE:  MS-DOS executable, MZ for MS-DOS
> CLIPPER.EX_:  data
> FILEIO.CH:    ASCII text, with CRLF line terminators
> FILEIO.C_:    data
> SALES.DBF:    FoxBase+/dBase III DBF, 8 records * 31,
> 	      update-date 93-11-18, at offset 97
> 	      1st record "Susan Smith"
> SALES.DB_:    data
> 
> For comparison reason i run the file format identification utility
> TrID ( See https://mark0.net/soft-trid-e.html). This
> identifies compressed examples like BLINKER.WR_ as "CAZIP compressed
> file" by definition caz.trid.xml (See appended cazip_trid-v.txt.gz).
> The reported file name extension seems to be wrong or incomplete.
> Unfortunately the mentioned reference URL has become invalid. But
> luckily i found a page about CAZIP on file formats archive team web
> site. That informations are expressed by comment lines like:
> # URL:		http://fileformats.archiveteam.org/wiki/CAZIP
> # Reference:	http://mark0.net/download/triddefs_xml.7z
> #		defs/c/caz.trid.xml
> 
> The file naming convention looks like for MS Compressed files. So i
> add inside Magdir/archive lines after MS Compress archive section.
> 
> According to Identifiers section on documentation side i add magic
> lines like:
> 0	string	\x0D\x0A\x1ACAZIP	CAZIP compressed file
> !:mime	application/x-compress-cazip
> !:ext	??_/?_/_
> Instead of generic mime type application/octet-stream i choose a user
> defined one.
> 
> After applying the above mentioned modifications by patch
> file-5.41-archive-cazip.diff then all my inspected CAZIP compressed
> files are now described. This now looks like:
> 
> BLINKER.WRI:  Microsoft Write 3.0 (Windows) Document,
> 	      115 pages,
> 	      Free T-shirts and up to 50% savings!
> BLINKER.WR_:  CAZIP compressed file
> CAOSETUP.EX_: CAZIP compressed file
> CLIPDEFS.H:   ASCII text, with CRLF line terminators
> CLIPDEFS._:   CAZIP compressed file
> CLIPPER.EXE:  MS-DOS executable, MZ for MS-DOS
> CLIPPER.EX_:  CAZIP compressed file
> FILEIO.CH:    ASCII text, with CRLF line terminators
> FILEIO.C_:    CAZIP compressed file
> SALES.DBF:    FoxBase+/dBase III DBF, 8 records * 31,
> 	      update-date 93-11-18, at offset 97
> 	      1st record "Susan Smith
> SALES.DB_:    CAZIP compressed file
> 
> I hope my diff file can be applied in future version of file utility.
> 
> With best wishes
> Jörg Jenderek
> --
> Jörg Jenderek
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> <trid-v-dc42.txt.gz><file-5_41-archive-cazip_diff.DEFANGED-11><file-5_41-archive-cazip_diff_sig.DEFANGED-12><cazip_trid-v.txt.gz>-- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>



More information about the File mailing list