btrbk: bugfix: btrfs_subvolume_show(): quote real_path everywhere

pull/88/head
Axel Burri 2016-04-22 20:17:03 +02:00
parent c13c99ada5
commit 3ffa63daba
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -623,7 +623,7 @@ sub btrfs_subvolume_show($)
$detail{id} = 5;
$detail{is_root} = 1;
}
elsif($ret =~ /^$real_path/) {
elsif($ret =~ /^\Q$real_path\E/) {
TRACE "btr_detail: found btrfs subvolume: $vol->{PRINT}";
# NOTE: received_uuid is not required here, as btrfs-progs < 4.1 does not give us that information.
# no worries, we get this from btrfs_subvolume_list() for all subvols.