From 03c1d7fb1ae6e483b5472cdb384b48cd6c315e88 Mon Sep 17 00:00:00 2001 From: Tom Hale Date: Fri, 25 Apr 2025 09:59:17 +0200 Subject: [PATCH] Allow 2 digits as argument to compressor's `-c` Support compression `-c` argument with more than one digit (eg zstd compression levels 10 to 22) --- ssh_filter_btrbk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh_filter_btrbk.sh b/ssh_filter_btrbk.sh index be9eb96..b9b4a36 100755 --- a/ssh_filter_btrbk.sh +++ b/ssh_filter_btrbk.sh @@ -79,7 +79,7 @@ reject_filtered_cmd() if [ -n "${allow_compress}" ]; then decompress_match="(${compress_list}) -d -c( -[pT][0-9]+)?( --long(=[0-9]+)?)?( --adapt)?" - compress_match="(${compress_list}) -c( -[0-9])?( -[pT][0-9]+)?( --long(=[0-9]+)?)?( --adapt)?" + compress_match="(${compress_list}) -c( -[0-9]{1,2})?( -[pT][0-9]+)?( --long(=[0-9]+)?)?( --adapt)?" else decompress_match= compress_match=