]> granicus.if.org Git - python/commitdiff
Merge from 3.2: Issue #12926: Fix a bug in tarfile's link extraction.
authorLars Gustäbel <lars@gustaebel.de>
Thu, 5 Jan 2012 17:53:00 +0000 (18:53 +0100)
committerLars Gustäbel <lars@gustaebel.de>
Thu, 5 Jan 2012 17:53:00 +0000 (18:53 +0100)
On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.

1  2 
Lib/tarfile.py
Misc/NEWS

diff --cc Lib/tarfile.py
Simple merge
diff --cc Misc/NEWS
Simple merge