reuse existing crypto context for subsequent volumes
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 5 May 2017 09:00:37 +0000 (11:00 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
deltatar/tarfile.py

index bdb40b1..b63b593 100644 (file)
@@ -2654,7 +2654,7 @@ class TarFile(object):
                             comptype=self.fileobj.comptype,
                             fileobj=None,
                             bufsize=self.fileobj.bufsize,
-                            encryption=encryption,
+                            encryption=encryption or self.fileobj.encryption,
                             concat=self.fileobj.arcmode & ARCMODE_CONCAT)
             else:
                 # here, we lose information about compression/encryption!