eryksun added the comment:

nt._isdir calls GetFileAttributes. CPython's stat implementation calls 
CreateFile to get a handle to pass to GetFileInformationByHandle. If it can't 
get a valid handle, it falls back to calling FindFirstFileW to get the file 
information, but only for ERROR_SHARING_VIOLATION. Shouldn't this include 
ERROR_ACCESS_DENIED?

win32_xstat_impl_w
http://hg.python.org/cpython/file/04f714765c13/Modules/posixmodule.c#l1742

----------
nosy: +eryksun
type: behavior -> crash

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21516>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to