Control: tags 919872 confirmed upstream Control: forwarded 919872 https://mailman.astron.com/pipermail/file/2020-May/000337.html
chrysn wrote...
> A working rule set for those files I'd suggest is:
>
> 0 string $HDT HDT file (binary compressed indexed RDF triples)
> !:mime application/vnd.hdt
>
> I'm not sure whether `file` keeps track of common file extensions; if
> it's relevant: such files typically have names ending with `.hdt`.
Thanks for the input, that rule set is a bit too weak so I added the
type number (binary 1) at offset 4 to strengthen the detection.
And yes, file(1) can handle file extensions as well, taken care of.
Regards,
Christoph
signature.asc
Description: PGP signature

