#1136317 file imprecisely detects LibreOffice zip-based service files

Package:
file
Source:
file
Description:
Recognize the type of data in a file using "magic" numbers
Submitter:
Gioele Barabucci
Date:
2026-05-13 21:19:02 UTC
Severity:
normal
Tags:
#1136317#5
Date:
2026-05-11 20:37:43 UTC
From:
To:
file is unable to correctly detect various kinds of internal zip-based
files used by LibreOffice. And even when it does, it does not associate
them with LibreOffice-specific file types.

A few examples from from `/usr/lib/libreoffice/share/`:

* autotext/en-US/standard.bau: «Zip data (MIME type "K"?)»
   Should be "LibreOffice AutoText macros"

* autocorr/acor_en-US.dat: «Zip data (MIME type "K"?)»
   Should be "LibreOffice AutoCorrect entries"

* palette/standard.sop: «Zip archive data, made by v3.0 UNIX»
   Should be "LibreOffice drawing patterns"

* palette/standard.sob: «Zip archive data, made by v6.3 UNIX»
   Should be "LibreOffice background pictures"

This issue has already been reported upstream. This bug will be used as
a blocker for other related bugs in Debian.

Regards,