[Patches] [ python-Patches-988444 ] tarfile.py and multiple extended headers

SourceForge.net noreply at sourceforge.net
Sat Jul 10 13:37:48 CEST 2004


Patches item #988444, was opened at 2004-07-10 13:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=988444&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Gustäbel (gustaebel)
Assigned to: Nobody/Anonymous (nobody)
Summary: tarfile.py and multiple extended headers

Initial Comment:
At the moment, tarfile.py is only able to read one
extended/special header (such as GNU longname etc.) at
once from an archive. In some cases there may be more
than one special header to process, e.g. an archive
member that points to a long linkname itself having a
long name, or a GNU sparse file member with a long
name. In those cases tarfile.py will fail to read that
particular member including all following ones. The
attached patch fixes that problem plus some minor
things that I came across while fixing it:

- fixed/improved handling of extended/special headers
in read-mode (adding new extended headers should be
less painful now).
- improved nts() function.
- removed TarFile.chunks datastructure which is not
(and was never) needed.
- fixed TarInfo.tobuf(), fields could overflow with too
large values, values are now clipped.

The patch is made against 2.4a1 sources.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=988444&group_id=5470


More information about the Patches mailing list