From 0214b14323f8d59aec6a7520ed124116eeca93a7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 8 Sep 2019 09:56:55 +0100 Subject: [PATCH] [Project] Lua_magic: Add zoo archive support --- lualib/lua_magic/patterns.lua | 9 +++++++++ lualib/lua_magic/types.lua | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index 9bb6df1825..87ed3c0e9c 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -215,6 +215,15 @@ local patterns = { }, } }, + zoo = { + matches = { + { + hex = [[dca7c4fd]], + relative_position = 20, + weight = 60, + }, + } + }, iso = { matches = { { diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index 299dc19246..e8e4e45e2e 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -101,6 +101,10 @@ local types = { ct = 'application/x-iso', type = 'archive', }, + zoo = { + ct = 'application/x-zoo', + type = 'archive', + }, szdd = { -- in fact, their MSDOS extension is like FOO.TX_ or FOO.TX$ ct = 'application/x-compressed', type = 'archive', -- 2.47.3