forked from p15670423/monkey
island: Fix Windows' secure file creation by using a different file flag
This commit is contained in:
parent
7ddb986f15
commit
1170b176d3
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue