bpo-29248: Fix os.readlink() on Windows (GH-5577) · python/cpython@a1d33f7 · GitHub
Skip to content

Commit a1d33f7

Browse files
miss-islingtonSSE4
authored andcommitted
bpo-29248: Fix os.readlink() on Windows (GH-5577)
The PrintNameOffset field of the reparse data buffer was treated as a number of characters instead of bytes. (cherry picked from commit 3c34aad) Co-authored-by: SSE4 <tomskside@gmail.com>
1 parent 6708be7 commit a1d33f7

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

Lib/test/test_os.py

Lines changed: 15 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix :func:`os.readlink` on Windows, which was mistakenly treating the
2+
``PrintNameOffset`` field of the reparse data buffer as a number of
3+
characters instead of bytes. Patch by Craig Holmquist and SSE4.

Modules/posixmodule.c

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)