28 lines
933 B
Diff
28 lines
933 B
Diff
From dc71304b3b1fd2ed5f7098d59fb7f6ef10cfdc85 Mon Sep 17 00:00:00 2001
|
|
From: Christos Zoulas <christos@zoulas.com>
|
|
Date: Sat, 31 Dec 2022 20:24:08 +0000
|
|
Subject: [PATCH] pyzip improvements (FC Stegerman)
|
|
|
|
---
|
|
magic/Magdir/archive | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- magic/Magdir/archive
|
|
+++ magic/Magdir/archive 2023-01-11 12:59:19.451975877 +0000
|
|
@@ -1876,9 +1876,14 @@
|
|
# https://en.wikipedia.org/wiki/ZIP_(file_format)#End_of_central_directory_record_(EOCD)
|
|
# by Michal Gorny <mgorny@gentoo.org>
|
|
-2 uleshort 0
|
|
->&-22 string PK\005\006 Zip archive, with extra data prepended
|
|
+>&-22 string PK\005\006
|
|
+# without #!
|
|
+>>0 string !#! Zip archive, with extra data prepended
|
|
!:mime application/zip
|
|
!:ext zip/cbz
|
|
+# with #!
|
|
+>>0 string/w #!\ a
|
|
+>>>&-1 string/T x %s script executable (Zip archive)
|
|
|
|
# ACE archive (from http://www.wotsit.org/download.asp?f=ace)
|
|
# by Stefan `Sec` Zehl <sec@42.org>
|