Sfoglia il codice sorgente

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

Rémi Oudin 5 anni fa
parent
commit
57b2b185b2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

@@ -778,7 +778,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)