summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2011-06-13 20:16:04 (GMT)
committerBrian Curtin <brian@python.org>2011-06-13 20:16:04 (GMT)
commitd25aef55c8b0025dd2ee7de11b526f34ceed6b66 (patch)
tree567a6c5afb5d1fbb53aed9a8f99eff1b907190cb /Misc
parent5b52f957977f450613c6eafdc9216ae7993d4d49 (diff)
downloadcpython-d25aef55c8b0025dd2ee7de11b526f34ceed6b66.zip
cpython-d25aef55c8b0025dd2ee7de11b526f34ceed6b66.tar.gz
cpython-d25aef55c8b0025dd2ee7de11b526f34ceed6b66.tar.bz2
Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.
Use of DeviceIoControl to obtain the symlink path via the reparse tag was removed. The code now uses GetFinalPathNameByHandle in the case of a symbolic link and works properly given the added test which creates a symbolic link and calls os.stat on it from multiple locations. Victor Stinner also noticed an issue with os.lstat following the os.stat code path when being passed bytes. The posix_lstat function was adjusted to properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 16a0f29..06c08a9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.2.1 release candidate 2?
Core and Builtins
-----------------
+- Issue #12084: os.stat on Windows now works properly with relative symbolic
+ links when called from any directory.
+
- Issue #1195: my_fgets() now always clears errors before calling fgets(). Fix
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.