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

SourceForge.net noreply at sourceforge.net
Sun Jul 11 00:02:30 CEST 2004


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

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Lars Gustäbel (gustaebel)
>Assigned to: A.M. Kuchling (akuchling)
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.


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

>Comment By: A.M. Kuchling (akuchling)
Date: 2004-07-10 18:02

Message:
Logged In: YES 
user_id=11375

Applied to CVS HEAD; thanks!

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

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