summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/tarfile.py6
-rw-r--r--Misc/NEWS2
2 files changed, 2 insertions, 6 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 427f132..5c9d3a8 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -2340,12 +2340,6 @@ class TarFile(object):
self._extract_member(self._find_link_target(tarinfo),
targetpath)
except symlink_exception:
- if tarinfo.issym():
- linkpath = os.path.join(os.path.dirname(tarinfo.name),
- tarinfo.linkname)
- else:
- linkpath = tarinfo.linkname
- else:
try:
self._extract_member(self._find_link_target(tarinfo),
targetpath)
diff --git a/Misc/NEWS b/Misc/NEWS
index cd2be2b..47fc5e9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -422,6 +422,8 @@ Core and Builtins
Library
-------
+- Issue #12926: Fix a bug in tarfile's link extraction.
+
- Issue #13696: Fix the 302 Relative URL Redirection problem.
- Issue #13636: Weak ciphers are now disabled by default in the ssl module