btrbk: fix regression: filter paths for action "ls"

regression from: eb69bc883e btrbk: refactor mountinfo
pull/459/head
Axel Burri 2022-02-26 18:05:40 +01:00
parent ff0a887c32
commit a25486336b
1 changed files with 1 additions and 0 deletions

1
btrbk
View File

@ -5907,6 +5907,7 @@ MAIN:
my $svol_path = $svol->{PATH};
$svol_path =~ s/^\/\//\//; # sanitize "//" (see vinfo_child)
next unless($root_path eq "/" || $svol_path =~ /^\Q$root_path\E(\/|\z)/);
if(_find_mountpoint($mnt, $svol_path) ne $mnt) {
DEBUG "Subvolume is hidden by another mount point: $svol->{PRINT}";
next;