Fix encryption end writing for external fileobjs.
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Nov 2020 09:32:06 +0000 (10:32 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Nov 2020 14:04:34 +0000 (15:04 +0100)
commitecaf8618b0890dfda63bd20c48d782eb5b9bcdb2
tree0941aa59af4f0acda55b3a9d2357652f8aa873d6
parentc7d9cd3be7bf20a5fe14c5a0e2c2445253016602
Fix encryption end writing for external fileobjs.

The fix in commit 867f75f78 for fixing offset calculations did not
take into account that file objects could be given from external code.

Correct that case.
deltatar/tarfile.py