[New-bugs-announce] [issue1718] Tarfile fails to fully extract tar.bz2/tar.gz package

Ismail Donmez report at bugs.python.org
Tue Jan 1 23:55:35 CET 2008

New submission from Ismail Donmez:

Running python 2.5 maintainance branch,

Test code is :

import tarfile

f = file(r"nss-3.12_alpha2.tar.bz2", "rb")
tar = tarfile.open(fileobj=f, mode="r|bz2")
        for m in tar:

You can get the file from
http://cekirdek.pardus.org.tr/~ismail/dist/nss-3.12_alpha2.tar.bz2 .

When the script finishes it only creates mozilla/security/nss directory,
if you extract with tar you will see that it also creates
mozilla/security/coreconf directory.

Tarfile created with 1.19 on Linux i686. I can reproduce the same
problem with tar.gz version of the same file.

components: Library (Lib)
messages: 59077
nosy: cartman
severity: normal
status: open
title: Tarfile fails to fully extract tar.bz2/tar.gz package
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list