GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — gh-160097: Reject links replacing the destination in `tarfile.tar_filter` by StanFromIreland · Pull Request #160098 · python/cpython Conversation
|
Documentation build overview
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # would replace it with a (sym)link, redirecting the destination | ||
| # for all subsequent members. | ||
| if ((member.islnk() or member.issym()) | ||
| and os.path.normpath(name) == os.curdir): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The old check compared the member's real path against the real path of the destination directory, this was incorrect. For example, a link named x was rejected whenever an earlier x -> . symlink existed, even though extracting it only replaces that symlink (and never touches the destination directory).
CC @gps-head
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
cc @gpshead
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12, 3.13, 3.14, 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-160339 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-160340 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-160341 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-160342 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-160343 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tar_filter` (GH-160098) (#160340) (cherry picked from commit e7e0b35) Co-authored-by: Stan Ulbrych <[email protected]>
…tar_filter` (GH-160098) (#160339) (cherry picked from commit e7e0b35) Co-authored-by: Stan Ulbrych <[email protected]>
…tar_filter` (GH-160098) (#160341) gh-160097: Reject links replacing the destination in `tarfile.tar_filter` (GH-160098) (cherry picked from commit e7e0b35) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: T. Wouters <[email protected]>
…rfile.tar_filter` (pythonGH-160098) (python#160343) pythongh-160097: Reject links replacing the destination in `tarfile.tar_filter` (pythonGH-160098) (cherry picked from commit e7e0b35) Co-authored-by: Stan Ulbrych <[email protected]> (cherry picked from commit bc93f8a)
…rfile.tar_filter` (pythonGH-160098) (python#160343) pythongh-160097: Reject links replacing the destination in `tarfile.tar_filter` (pythonGH-160098) (cherry picked from commit e7e0b35) Co-authored-by: Stan Ulbrych <[email protected]> (cherry picked from commit bc93f8a) (cherry picked from commit f2435de)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.