Ver código fonte

Merge pull request #5427 from enkore/issue/5274

export-tar: set tar format to GNU_FORMAT explicitly
TW 4 anos atrás
pai
commit
d5d9d7d23b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

@@ -933,7 +933,7 @@ class Archiver:
 
         # The | (pipe) symbol instructs tarfile to use a streaming mode of operation
         # where it never seeks on the passed fileobj.
-        tar = tarfile.open(fileobj=tarstream, mode='w|')
+        tar = tarfile.open(fileobj=tarstream, mode='w|', format=tarfile.GNU_FORMAT)
 
         self._export_tar(args, archive, tar)