From a25486336bd19d1486e00023a17231578e9f45a6 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sat, 26 Feb 2022 18:05:40 +0100 Subject: [PATCH] btrbk: fix regression: filter paths for action "ls" regression from: eb69bc883e btrbk: refactor mountinfo --- btrbk | 1 + 1 file changed, 1 insertion(+) diff --git a/btrbk b/btrbk index 0421ede..d95fe9d 100755 --- a/btrbk +++ b/btrbk @@ -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;