commit 7fc1dd5: [Minor] Rspamadm: Add zstd compression support to grep subcommand

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jun 27 19:28:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-27 20:23:07 +0100
URL: https://github.com/rspamd/rspamd/commit/7fc1dd5af0baa24d94acc28bda4ef37528ba7414 (HEAD -> master)

[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


More information about the Commits mailing list