]> arthur.barton.de Git - bup.git/commitdiff
vfs: fix finish_extract()
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 23:19:33 +0000 (00:19 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2020 19:19:22 +0000 (14:19 -0500)
The 'dir' variable doesn't exist here, must be 'meta' instead.

Fixes: 0962d3904735 ("Add initial support for metadata archives.")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
(cherry picked from commit 9cbb51ec1423ef2e24f18f756585dcc39d8a54f2)
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py

index 2f3ee06e0ad57839f5fc66c90f7feae21070981f..89c7f0ce04a2900e721831e88d447a444b02844e 100644 (file)
@@ -1168,7 +1168,7 @@ def finish_extract(file, restore_numeric_ids=False):
             break
         xpath = _clean_up_extract_path(meta.path)
         if not xpath:
-            add_error(Exception('skipping risky path "%s"' % dir.path))
+            add_error(Exception('skipping risky path "%s"' % meta.path))
         else:
             if os.path.isdir(meta.path):
                 all_dirs.append(meta)