-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-118447: Fix handling of unreadable symlinks in os.path.realpath()
#118489
Conversation
os.path.realpath()
os.path.realpath()
|
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 what strict
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 commit caf6064) 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 the 3.13 branch. |
…path()` (python#118489) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> (cherry picked from commit caf6064)
…th.realpath()` (pythonGH-118489) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>. (cherry picked from commit caf6064) 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 :) |
|
|
|
|
…path()` (python#118489) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
posixpath.realpath('secretlink')
raises #118447