From 9cbb51ec1423ef2e24f18f756585dcc39d8a54f2 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 29 Jan 2020 00:19:33 +0100 Subject: [PATCH] vfs: fix finish_extract() The 'dir' variable doesn't exist here, must be 'meta' instead. Fixes: 0962d3904735 ("Add initial support for metadata archives.") Signed-off-by: Johannes Berg Reviewed-by: Rob Browning --- lib/bup/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index 27f5276..48b1a07 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -1186,7 +1186,7 @@ def finish_extract(file, restore_numeric_ids=False): xpath = _clean_up_extract_path(meta.path) if not xpath: add_error(Exception('skipping risky path "%s"' - % path_msg(dir.path))) + % path_msg(meta.path))) else: if os.path.isdir(meta.path): all_dirs.append(meta) -- 2.39.2