瀏覽代碼

export-tar: set tar format to GNU_FORMAT explicitly

Python 3.8 changed the default format to PAX, but GNU format is
documented for Borg.
Marian Beermann 4 年之前
父節點
當前提交
c81bc43ad5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
         # The | (pipe) symbol instructs tarfile to use a streaming mode of operation
         # where it never seeks on the passed fileobj.
         # 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)
         self._export_tar(args, archive, tar)