浏览代码

extract: fix confusing output of borg extract --list --strip-components, fixes #4934

Rémi Oudin 5 年之前
父节点
当前提交
70c8538626
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

@@ -797,7 +797,7 @@ class Archiver:
                     except BackupOSError as e:
                     except BackupOSError as e:
                         self.print_warning('%s: %s', remove_surrogates(dir_item.path), e)
                         self.print_warning('%s: %s', remove_surrogates(dir_item.path), e)
             if output_list:
             if output_list:
-                logging.getLogger('borg.output.list').info(remove_surrogates(orig_path))
+                logging.getLogger('borg.output.list').info(remove_surrogates(item.path))
             try:
             try:
                 if dry_run:
                 if dry_run:
                     archive.extract_item(item, dry_run=True, pi=pi)
                     archive.extract_item(item, dry_run=True, pi=pi)