disable-over-eagerly-msooxml-detection.patch 1.1 KB

12345678910111213141516171819202122232425
  1. Subject: Disable over-eagerly MSOOXML detection
  2. Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
  3. Date: 2026-06-06
  4. Bug-Debian: https://bugs.debian.org/1138991
  5. Forwarded: https://mailman.astron.com/pipermail/file/2026-June/001674.html
  6. Upstream commit FILE5_46-106-g8cef37b5 ("PR/0644: omajid: Recognize
  7. NuGet packages") enhanced the list of what files in the listing in a
  8. ZIP archive might be an MS OOXML file. The rationale is not clear,
  9. but under some circumstances this causes ZIP files to be
  10. mis-detected.
  11. Revert this part of the above commit for the time being.
  12. --- a/magic/Magdir/msooxml
  13. +++ b/magic/Magdir/msooxml
  14. @@ -35,7 +35,7 @@
  15. # make sure the first file is correct
  16. >0x1E use msooxml
  17. >0x1E default x
  18. ->>0x1E regex \\[Content_Types\\]\\.xml|_rels/\\.rels|docProps|customXml|.*\\.md|.*\\.png
  19. +>>0x1E regex \\[Content_Types\\]\\.xml|_rels/\\.rels|docProps|customXml
  20. # skip to the second local file header
  21. # since some documents include a 520-byte extra field following the file
  22. # header, we need to scan for the next header