[Patches] [ python-Patches-1103407 ] tarfile.py: fix for bug #1100429

SourceForge.net noreply at sourceforge.net
Sun Jan 16 18:36:11 CET 2005


Patches item #1103407, was opened at 2005-01-16 18:36
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=1103407&group_id=5470

Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Gustäbel (gustaebel)
Assigned to: Nobody/Anonymous (nobody)
Summary: tarfile.py: fix for bug #1100429

Initial Comment:
On platforms like Win32 which don't support symbolic
and hard links, link extraction from a tar archive is
simulated: If the link points to a file inside the
archive this file is extracted instead of the link.
In Greg's case the referenced file comes after the link
in the archive which is the reason why iteration
breaks: at the point in iteration when the referenced
file is needed it is still unknown to the TarFile
object which will then search the whole archive
exhausting the iterator itself.

The patch fixes the TarIter class, so it is able to
notice if the TarFile has already loaded all members
between two iteration steps.

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

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


More information about the Patches mailing list