From 7fc1dd5af0baa24d94acc28bda4ef37528ba7414 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 27 Jun 2019 20:23:07 +0100 Subject: [PATCH] [Minor] Rspamadm: Add zstd compression support to grep subcommand --- lualib/rspamadm/grep.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5