From 5b2644f12a7086e1d67a154c08e0de4c31a04dd1 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sat, 24 Jul 2021 12:47:34 +0200 Subject: [PATCH] btrbk: fix check_file: accept both relative and absolute options --- btrbk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/btrbk b/btrbk index aaf2a58..0955bd3 100755 --- a/btrbk +++ b/btrbk @@ -3871,7 +3871,10 @@ sub check_file($$;@) if($file =~ /^($match)$/) { $file = $1; - if($accept->{absolute}) { + if($accept->{absolute} && $accept->{relative}) { + # accepted, matches either absolute or relative + } + elsif($accept->{absolute}) { unless($file =~ /^\//) { ERROR "Only absolute files allowed $error_statement" if(defined($error_statement)); return undef;