From 3ffa63daba475cc20128dd571e1be71cdf850163 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Fri, 22 Apr 2016 20:17:03 +0200 Subject: [PATCH] btrbk: bugfix: btrfs_subvolume_show(): quote real_path everywhere --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index da41223..29d10a3 100755 --- a/btrbk +++ b/btrbk @@ -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.