[File] Suboptimal detection of various LibreOffice zip-based files

Christoph Biedl astron.com.bwoj at manchmal.in-ulm.de
Fri May 15 15:04:20 EDT 2026


Gioele Barabucci wrote...

> file 5.46 misdetects (or, better, suboptimally detects) some files used or
> produced by LibreOffice. The following examples are taken from the Debian
> package libreoffice-common [1], directory `/usr/lib/libreoffice/share/`.

FWIW, the palette/standard.so[bp] are indentified mildly differently
here, "Java archive data (JAR)" and "Zip archive data, made by v3.0
UNIX, extract using at least v1.0, last modified Mar 06 2020 00:05:56,
uncompressed size 0, method=store". Using file with today's HEAD.

Still that certainly could see an improvement.

> Would it be possible to extend the file command and the magic file to detect
> them as separate file types?

You can help a lot here by providing a file format description. As they
all are .zip files, are there specific files inside that container?
Other bits that could be used for identification?

    Christoph


More information about the File mailing list