[New-bugs-announce] [issue4218] tarfile module fails to correctly parse some .tar.gz archives?!

gerhard_xXx report at bugs.python.org
Tue Oct 28 16:12:12 CET 2008


New submission from gerhard_xXx <h9204473 at wu-wien.ac.at>:

hi,

seems like tarfile module for python 2.4 is broken.
If I open the attached dir.tar.gz (tried it on different machines) then
tarfile module only displays a part of the contents.

what I did:
>>> import tarfile
>>> f = tarfile.open('dir.tar.gz','r:gz')
>>> f.getnames()

getnames() only returns the files/directories in the dir.tar.gz that
start with letter "a-j" and skips the rest???!!

cheers gerhard

More info (I have debian etch installation):
Python 2.4.4 (#2, Apr 16 2008, 17:58:59)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2

$ tar --version
tar (GNU tar) 1.16
Copyright (C) 2006 Free Software Foundation, Inc.

----------
components: Extension Modules
files: dir.tar.gz
messages: 75284
nosy: gerhard_xXx
severity: normal
status: open
title: tarfile module fails to correctly parse some .tar.gz archives?!
type: behavior
versions: Python 2.4
Added file: http://bugs.python.org/file11899/dir.tar.gz

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4218>
_______________________________________


More information about the New-bugs-announce mailing list