Issue 1718: Tarfile fails to fully extract tar.bz2/tar.gz package (original) (raw)

Issue1718

Created on 2008-01-01 22:55 by donmez, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg59077 - (view) Author: Ismail Donmez (donmez) * Date: 2008-01-01 22:55
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") try: for m in tar: tar.extract(m) finally: tar.close() f.close() 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.
msg59078 - (view) Author: Ismail Donmez (donmez) * Date: 2008-01-01 23:02
Argh stupid me, this is due a patch on my side, grr. ı am really sorry. Please close as invalid :(
History
Date User Action Args
2022-04-11 14:56:29 admin set github: 46059
2008-01-02 00:46:33 gvanrossum set status: open -> closedresolution: not a bug
2008-01-01 23:02:59 donmez set messages: +
2008-01-01 22:56:37 donmez set type: behavior
2008-01-01 22:55:35 donmez create