Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.12] gh-157265: tarfile: Honor None result of filter for link fallbacks (GH-157266) - #157305

Draft
miss-islington wants to merge 2 commits into
python:3.12from
miss-islington:backport-fb2f0bb-3.12
Draft

[3.12] gh-157265: tarfile: Honor None result of filter for link fallbacks (GH-157266)#157305
miss-islington wants to merge 2 commits into
python:3.12from
miss-islington:backport-fb2f0bb-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

(cherry picked from commit fb2f0bb)

Co-authored-by: Petr Viktorin [email protected]
Co-authored-by: Stan Ulbrych [email protected]

…cks (pythonGH-157266)

(cherry picked from commit fb2f0bb)

Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
pythongh-157266: Adjust test for Windows

On Windows (no symlinks, no hardlinks), the behaviour is
the same as without the fix in pythonGH-157266:
- a/t/dummy is extracted
- b/ is extracted
- c/ is *not* created (the target, a/t, is not in the archive)
- c/escape: c/ is created; escape is skipped (target,
   c/../../link_here, is not in archive)
- c is not recreated as a directory
- boom is not created (target is c/escape, which falls back to
  ..\..\link_here, which does not exist in archive)
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.

2 participants