Explorar o código

Merge pull request #4949 from Gu1nness/4934-borg-extract-is-confusing

Fix #4934 : The path given by borg extract --strip-components --list is not confusing anymore
TW %!s(int64=5) %!d(string=hai) anos
pai
achega
a5152012f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

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