btrbk: never match dummy volume section

pull/411/head
Axel Burri 2021-07-24 20:55:50 +02:00
parent e1c5fd0029
commit 7603e03aad
1 changed files with 3 additions and 0 deletions

3
btrbk
View File

@ -3443,6 +3443,9 @@ sub vinfo_match($$;@)
my %opts = @_;
my $flag_matched = $opts{flag_matched};
# never match dummy volume section
return 0 if($vinfo->{CONFIG}{DUMMY});
# match URL against sane path (can contain "//", see vinfo_child),
# no wildcards
my ($url_prefix, $path) = check_url($vinfo->{URL});