Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
GH-118447: Fix handling of unreadable symlinks inos.path.realpath()
#118489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
os.path.realpath()
os.path.realpath()
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
|
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
OK, you're right, it shouldn't raise an error. That's whatstrict
is for.
I think that it is reasonable to expect that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Barney, would you like to continue working on this? You have my approval if it means anything.
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Thanks for the reviews and suggestions, both! |
Thanks@barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…path()` (pythonGH-118489)(cherry picked from commitcaf6064)Co-authored-by: Barney Gale <barney.gale@gmail.com>Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Sorry,@barneygale, I could not cleanly backport this to
|
GH-119163 is a backport of this pull request to the3.13 branch. |
…path()` (python#118489)Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>(cherry picked from commitcaf6064)
…th.realpath()` (pythonGH-118489)Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>.(cherry picked from commitcaf6064)Co-authored-by: Barney Gale <barney.gale@gmail.com>
If no one objects, I'll skip backporting to 3.12 as this is a fairly minor bug and I can't be bothered to fix the conflicts :) |
bedevere-bot commentedMay 18, 2024
|
bedevere-bot commentedMay 18, 2024
|
bedevere-bot commentedMay 18, 2024
|
bedevere-bot commentedMay 18, 2024
|
…path()` (python#118489)Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
posixpath.realpath('secretlink')
raises #118447