GH-118447: Fix handling of unreadable symlinks in os.path.realpath()#118489
GH-118447: Fix handling of unreadable symlinks in os.path.realpath()#118489barneygale merged 8 commits intopython:mainfrom
os.path.realpath()#118489Conversation
os.path.realpath()os.path.realpath()
|
nineteendo
left a comment
There was a problem hiding this comment.
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 |
nineteendo
left a comment
There was a problem hiding this comment.
Barney, would you like to continue working on this? You have my approval if it means anything.
|
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 <[email protected]> Co-authored-by: Nice Zombies <[email protected]>
|
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 <[email protected]> (cherry picked from commit caf6064)
…th.realpath()` (pythonGH-118489) Co-authored-by: Nice Zombies <[email protected]>. (cherry picked from commit caf6064) Co-authored-by: Barney Gale <[email protected]>
|
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 :) |
|
|
…lpath()` (GH-118489) (#119163) (cherry picked from commit caf6064) Co-authored-by: Barney Gale <[email protected]> Co-authored-by: Nice Zombies <[email protected]>
|
|
…path()` (python#118489) Co-authored-by: Nice Zombies <[email protected]>
posixpath.realpath('secretlink')raises #118447