mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Update issue 6070 patch to match the patch that was actually tested
on Windows.
This commit is contained in:
		
							parent
							
								
									c71fae5ad7
								
							
						
					
					
						commit
						3310a10a68
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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 
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue