From: Vsevolod Stakhov Date: Thu, 27 Jun 2019 19:23:07 +0000 (+0100) Subject: [Minor] Rspamadm: Add zstd compression support to grep subcommand X-Git-Tag: 2.0~704 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fc1dd5af0baa24d94acc28bda4ef37528ba7414;p=rspamd.git [Minor] Rspamadm: Add zstd compression support to grep subcommand --- diff --git a/lualib/rspamadm/grep.lua b/lualib/rspamadm/grep.lua index b149a0337..3b4a058ab 100644 --- a/lualib/rspamadm/grep.lua +++ b/lualib/rspamadm/grep.lua @@ -90,6 +90,8 @@ local function handler(args) h, err = io.popen('bzcat ' .. n, 'r') elseif string.match(n, '%.gz$') then h, err = io.popen('zcat ' .. n, 'r') + elseif string.match(n, '%.zst$') then + h, err = io.popen('zstdcat ' .. n, 'r') elseif n == 'stdin' then h = io.input() else