From 157f9333e7aaa0cb8024b476434a8ae1ac47bda8 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Mon, 20 Apr 2015 18:50:12 +0200 Subject: [PATCH] btrbk: bugfix: set REAL_PATH to vinfo_child only if it is confirmed --- btrbk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/btrbk b/btrbk index 9bffcfa..c1caaa7 100755 --- a/btrbk +++ b/btrbk @@ -265,9 +265,7 @@ sub vinfo_child($$) my %info = ( NAME => $name, URL => "$parent->{URL}/$rel_path", - REAL_URL => "$parent->{REAL_URL}/$rel_path", PATH => "$parent->{PATH}/$rel_path", - REAL_PATH => "$parent->{REAL_PATH}/$rel_path", PRINT => "$parent->{PRINT}/$rel_path", ); foreach (qw( HOST @@ -295,12 +293,8 @@ sub vinfo_set_detail($$) # check and add detail data to vinfo hash foreach(keys %$detail) { if((defined $vol->{$_}) && ($vol->{$_} ne $detail->{$_})) { - if($_ eq "REAL_PATH") { - DEBUG "Subvolume REAL_PATH changed (symlink): old=\"$vol->{REAL_PATH}\", new=\"$detail->{REAL_PATH}\""; - } else { WARN "Subvolume detail key \"$_\" is already present, with a different value: old=\"$vol->{$_}\", new=\"$detail->{$_}\""; WARN "Using new value for \"$_\": $detail->{$_}"; - } } $vol->{$_} = $detail->{$_}; }