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);