Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-7a562c4-3.15
Open

[3.15] gh-127636: Fix tarfile extracting trailing slash member names (GH-152984)#157167
miss-islington wants to merge 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants