Skip to content

Commit 3422b4b

Browse files
Update Lib/tarfile.py
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
1 parent 027cfba commit 3422b4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,7 @@ def makelink_with_filter(self, tarinfo, targetpath,
28152815
os.unlink(targetpath)
28162816
# Resolve the target so the hard link points to the file
28172817
# itself. Otherwise os.link() may duplicate a symlink to a
2818-
# shallower location, where it's relative target escapes the
2818+
# shallower location, where its relative target escapes the
28192819
# destination directory. (CVE-2026-82049)
28202820
os.link(os.path.realpath(tarinfo._link_target), targetpath)
28212821
return

0 commit comments

Comments
 (0)