[issue12084] os.stat() on windows doesn't consider relative symlink

Brian Curtin report at bugs.python.org
Tue Jun 14 01:48:48 CEST 2011


Brian Curtin <brian at python.org> added the comment:

How about this patch?

We yield the GIL in posix_do_stat, so as Antoine pointed out in IRC, we were calling PyErr_SetString without having the GIL. I think this is the correct fix as I've stepped through the code in Visual Studio, forcing it to take this branch when on Win7, but I don't currently have the ability to run on XP.

----------
Added file: http://bugs.python.org/file22359/issue12084_XP.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12084>
_______________________________________


More information about the Python-bugs-list mailing list