linux fix for creating new files

This commit is contained in:
insofaras 2016-03-22 00:37:16 +00:00
parent e3b6d341cd
commit ead9dfad99
1 changed files with 1 additions and 1 deletions

View File

@ -948,7 +948,7 @@ out:
internal internal
Sys_Save_File_Sig(system_save_file){ Sys_Save_File_Sig(system_save_file){
b32 result = 0; b32 result = 0;
int fd = open(filename, O_WRONLY | O_TRUNC); int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 00640);
LINUX_FN_DEBUG("%s %d", filename, size); LINUX_FN_DEBUG("%s %d", filename, size);