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

Commit 3c34aad

Browse files
SSE4berkerpeksag
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.
1 parent 6ea20fc commit 3c34aad

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)