]> granicus.if.org Git - python/commit
Issue #12926: Fix a bug in tarfile's link extraction.
authorLars Gustäbel <lars@gustaebel.de>
Thu, 5 Jan 2012 17:48:06 +0000 (18:48 +0100)
committerLars Gustäbel <lars@gustaebel.de>
Thu, 5 Jan 2012 17:48:06 +0000 (18:48 +0100)
commitdee45e20f67f8d81de2d9c003ab18660036d5d73
tree0411960ca9d7f6e78d1a938424b6f28833ca58f1
parentcdf6cd9ff30b75c72cbb8ad20293602a197dce6b
Issue #12926: Fix a bug in tarfile's link extraction.

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.
Lib/tarfile.py
Misc/NEWS