[Python-checkins] r73879 - python/trunk/Python/import.c
r.david.murray
python-checkins at python.org
Tue Jul 7 11:54:17 CEST 2009
Author: r.david.murray
Date: Tue Jul 7 11:54:16 2009
New Revision: 73879
Log:
Update issue 6070 patch to match the patch that was actually tested
on Windows.
Modified:
python/trunk/Python/import.c
Modified: python/trunk/Python/import.c
==============================================================================
--- python/trunk/Python/import.c (original)
+++ python/trunk/Python/import.c Tue Jul 7 11:54:16 2009
@@ -881,7 +881,9 @@
{
FILE *fp;
time_t mtime = srcstat->st_mtime;
-#ifndef MS_WINDOWS
+#ifdef MS_WINDOWS /* since Windows uses different permissions */
+ mode_t mode = srcstat->st_mode & ~S_IEXEC;
+#else
mode_t mode = srcstat->st_mode & ~S_IXUSR & ~S_IXGRP & ~S_IXOTH;
#endif
More information about the Python-checkins
mailing list