fix: File creation on Unix caused compile errors
This commit is contained in:
parent
2ccf8e777c
commit
d4e484e982
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user