commit | 3310a10a68228c4a84a2ed517af6b0b81e7f0b15 | [log] [tgz] |
---|---|---|
author | R. David Murray <rdmurray@bitdance.com> | Tue Jul 07 09:54:16 2009 +0000 |
committer | R. David Murray <rdmurray@bitdance.com> | Tue Jul 07 09:54:16 2009 +0000 |
tree | 8f2b86604a815a3eac8133e4ef5ab62eb00b42e7 | |
parent | c71fae5ad7d3742764adc317b905fd7e297d12bf [diff] [blame] |
Update issue 6070 patch to match the patch that was actually tested on Windows.
diff --git a/Python/import.c b/Python/import.c index 46a1acc..67c6cb2 100644 --- a/Python/import.c +++ b/Python/import.c
@@ -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