[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

Brian Curtin report at bugs.python.org
Tue Jan 11 17:05:54 CET 2011


Brian Curtin <curtin at acm.org> added the comment:

The "Read & Execute" permission listed on a file's property window doesn't really mean anything. Executables only need read permissions [0] to actually be executed.

Additionally, in terms of _stat, Windows does its check by extension [1] but they don't specify what extensions they look for.

Adding ".dll" checking would be the most we could do here.



[0] http://technet.microsoft.com/en-us/library/bb727008.aspx
[1] See "st_mode" halfway down the page, http://msdn.microsoft.com/en-us/library/14h5k7ff(v=VS.90).aspx

----------
components: +Extension Modules
keywords: +easy
nosy: +brian.curtin
stage:  -> needs patch
versions: +Python 3.1, Python 3.2, Python 3.3

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


More information about the Python-bugs-list mailing list