diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-10-20 00:49:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 00:49:00 (GMT) |
commit | d9a2665fc4573c4d311a89750737ad4cc3310252 (patch) | |
tree | 4b1e7f0ce8180491413dd298c763bf06506559ef /Tools/scripts/patchcheck.py | |
parent | 75ee130c39e73730535d94923fd8322ef616cb83 (diff) | |
download | cpython-d9a2665fc4573c4d311a89750737ad4cc3310252.zip cpython-d9a2665fc4573c4d311a89750737ad4cc3310252.tar.gz cpython-d9a2665fc4573c4d311a89750737ad4cc3310252.tar.bz2 |
bpo-32890, os: Use errno instead of GetLastError() in execve() and truncate() (GH-5784)
path_error() uses GetLastError() on Windows, but some os functions
are implemented via CRT APIs which report errors via errno.
This may result in raising OSError with invalid error code (such
as zero).
Introduce posix_path_error() function and use it where appropriate.
(cherry picked from commit 834603112e6ca35944dd21105b01fca562dc3241)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Diffstat (limited to 'Tools/scripts/patchcheck.py')
0 files changed, 0 insertions, 0 deletions