Skip to content

[3.15] gh-127636: Fix tarfile extracting trailing slash member names (GH-152984) - #157167

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-7a562c4-3.15
Oct 23, 2026
Merged

hugovk merged 1 commit into
python:3.15from
miss-islington:backport-7a562c4-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes tarfile.TarFile.extract to accept archive member names with a
trailing forward slash, including those returned by tarfile.TarFile.getnames

very old style tar files may have these. new archivers likely do not do this.
(cherry picked from commit 7a562c4)

Co-authored-by: Xiao Yuan 47032563+yuanx749@users.noreply.github.com

…ythonGH-152984)

Fixes tarfile.TarFile.extract to accept archive member names with a
trailing forward slash, including those returned by tarfile.TarFile.getnames

very old style tar files may have these.  new archivers likely do not do this.
(cherry picked from commit 7a562c4)

Co-authored-by: Xiao Yuan <47032563+yuanx749@users.noreply.github.com>
@hugovk
hugovk merged commit 7f96291 into python:3.15 Oct 23, 2026
59 checks passed
@miss-islington
miss-islington deleted the backport-7a562c4-3.15 branch October 23, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants