1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00

Merge pull request #5427 from enkore/issue/5274

export-tar: set tar format to GNU_FORMAT explicitly
This commit is contained in:
TW 2020-10-17 23:29:07 +02:00 committed by GitHub
commit d5d9d7d23b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -933,7 +933,7 @@ def do_export_tar(self, args, repository, manifest, key, archive):
# 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)