Update issue 6070 patch to match the patch that was actually tested

on Windows.
This commit is contained in:
R. David Murray 2009-07-07 09:54:16 +00:00
parent c71fae5ad7
commit 3310a10a68
1 changed files with 3 additions and 1 deletions

View File

@ -881,7 +881,9 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
{
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