ssh_filter_btrbk: Allow command options to be after paths

pull/657/head
MaxHearnden 2026-09-11 02:59:43 +01:00
parent a47e8b7e0e
commit d26a72d8f4
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ reject_filtered_cmd()
fi
# allow multiple paths (e.g. "btrfs subvolume snapshot <src> <dst>")
allow_cmd_match="(${allow_list})( ${option_match})*( ${path_match})+"
allow_cmd_match="(${allow_list})( ${option_match})*( ${path_match})( (${option_match}|${path_match}))*"
stream_in_match="(${decompress_match} \| )?(${mbuffer_match} \| )?"
stream_out_match="( \| ${mbuffer_match})?( \| ${compress_match})?"