1
0
mirror of synced 2024-11-12 10:10:53 +01:00

fix: File creation on Unix caused compile errors

This commit is contained in:
WerWolv 2021-07-27 21:49:17 +02:00
parent 2ccf8e777c
commit d4e484e982
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ namespace hex::prv {
::CloseHandle(handle);
}
#else
auto handle = ::open(path.data(), O_RDWR | O_CREAT);
auto handle = ::open(this->m_path.data(), 0644);
truncate(handle, newSize - 1);

View File

@ -641,7 +641,7 @@ namespace hex {
::SetEndOfFile(handle);
::CloseHandle(handle);
#else
auto handle = ::open(path.data(), O_RDWR | O_CREAT);
auto handle = ::open(path.data(), O_RDWR | O_CREAT, 0644);
if (handle == -1)
return false;