island: Fix Windows' secure file creation by using a different file flag

This commit is contained in:
shreyamalviya 2021-06-14 23:41:56 +05:30
parent 7ddb986f15
commit 1170b176d3
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def _create_secure_file_windows(path: str):
windows_permissions.get_security_descriptor_for_owner_only_perms() windows_permissions.get_security_descriptor_for_owner_only_perms()
) )
file_creation = win32file.CREATE_NEW # fails if file exists file_creation = win32file.CREATE_NEW # fails if file exists
file_attributes = win32file.FILE_ATTRIBUTE_NORMAL file_attributes = win32file.FILE_FLAG_BACKUP_SEMANTICS
win32file.CloseHandle(win32file.CreateFile( win32file.CloseHandle(win32file.CreateFile(
path, path,