gh-82367: Use FindFirstFile Win32 API in ntpath.realpath() (GH-110298)

* Use `FindFirstFile` Win32 API to fix a bug where `ntpath.realpath()`
breaks out of traversing a series of paths where a (handled)
`ERROR_ACCESS_DENIED` or `ERROR_SHARING_VIOLATION` occurs.
* Update docs to reflect that `ntpath.realpath()` eliminates MS-DOS
style names.
This commit is contained in:
박문식 2023-10-05 23:49:07 +09:00 committed by GitHub
parent 2cb62c6437
commit d33aa18f15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 132 additions and 8 deletions

View file

@ -1373,6 +1373,7 @@ Peter Parente
Alexandre Parenteau
Dan Parisien
HyeSoo Park
Moonsik Park
William Park
Claude Paroz
Heikki Partanen

View file

@ -0,0 +1,2 @@
:func:`os.path.realpath` now resolves MS-DOS style file names even if
the file is not accessible. Patch by Moonsik Park.