]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151669: Normalize symlink targets in tarfile.TarFile.gettarinfo() (GH-151671)
authorDaniele Nicolodi <daniele@grinta.net>
Fri, 10 Jul 2026 13:53:01 +0000 (15:53 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2026 13:53:01 +0000 (15:53 +0200)
commitcc316410177c29f0398135f208e28e9525ca8bd9
treec3d5c7ad818133dcca284148df38069fc0a52008
parentc98e984b12de54305416498b98ed2e2c77e9849e
gh-151669: Normalize symlink targets in tarfile.TarFile.gettarinfo() (GH-151671)

This applies a normalization when creating members vrom the filesystem,
 complementary to the one added to tarfile.TarFile.extract() in gh-138309
that does it in the other direction.
This solves an issue with round-tripping through the filesystem.
Doc/whatsnew/3.15.rst
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Library/2026-06-24-23-28-42.gh-issue-151669.tPUavQ.rst [new file with mode: 0644]