diff options
author | Steve Dower <steve.dower@python.org> | 2019-08-21 22:52:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 22:52:42 (GMT) |
commit | 9eb3d5463976068900e94b860ced7e035885835c (patch) | |
tree | c97aa41b153e67db42ef4b13a9e20bc0747301f9 /Include/fileutils.h | |
parent | c30c869e8dec5eefdee7977943ffa11a8e3c8d75 (diff) | |
download | cpython-9eb3d5463976068900e94b860ced7e035885835c.zip cpython-9eb3d5463976068900e94b860ced7e035885835c.tar.gz cpython-9eb3d5463976068900e94b860ced7e035885835c.tar.bz2 |
bpo-37834: Normalise handling of reparse points on Windows (GH-15370)
bpo-37834: Normalise handling of reparse points on Windows
* ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed)
* nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point)
* nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour)
* nt.readlink() will read destinations for symlinks and junction points only
bpo-1311: os.path.exists('nul') now returns True on Windows
* nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r-- | Include/fileutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h index 0be8b0a..359dd0a 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -84,6 +84,7 @@ struct _Py_stat_struct { time_t st_ctime; int st_ctime_nsec; unsigned long st_file_attributes; + unsigned long st_reparse_tag; }; #else # define _Py_stat_struct stat |