[issue28075] os.stat fails when access is denied

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +1069 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28075] os.stat fails when access is denied

2016-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20c4ad866620 by Berker Peksag in branch '3.5': Issue #28075: Fix test_access_denied in Python 3.5 https://hg.python.org/cpython/rev/20c4ad866620 -- ___ Python tracker

[issue28075] os.stat fails when access is denied

2016-09-17 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Eryk. -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker _

[issue28075] os.stat fails when access is denied

2016-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset eabb86463462 by Berker Peksag in branch '3.5': Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat() https://hg.python.org/cpython/rev/eabb86463462 New changeset 4071a7cf6437 by Berker Peksag in branch '3.6': Issue #280

[issue28075] os.stat fails when access is denied

2016-09-11 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28075] os.stat fails when access is denied

2016-09-11 Thread Eryk Sun
Eryk Sun added the comment: I overlooked attempting to open a paging-file for any access, which is hard coded as a sharing violation. The attached patch checks for both cases. -- keywords: +patch Added file: http://bugs.python.org/file44554/issue_28075_01.patch

[issue28075] os.stat fails when access is denied

2016-09-11 Thread Eryk Sun
Eryk Sun added the comment: Python 3's os.stat tries to open a handle for the file or directory in order to call GetFileInformationByHandle. Opening a file handle via CreateFile requests at least FILE_READ_ATTRIBUTES and SYNCHRONIZE access when it calls NtCreateFile. If access is denied, os.st