Core/File: Fix OpenMode_MustExist for Linux
This commit is contained in:
parent
efcce7d442
commit
0031b0fd83
|
|
@ -66,6 +66,9 @@ namespace Nz
|
||||||
if (mode & OpenMode_Append)
|
if (mode & OpenMode_Append)
|
||||||
flags |= O_APPEND;
|
flags |= O_APPEND;
|
||||||
|
|
||||||
|
if (mode & OpenMode_MustExist)
|
||||||
|
flags &= ~O_CREAT;
|
||||||
|
|
||||||
if (mode & OpenMode_Truncate)
|
if (mode & OpenMode_Truncate)
|
||||||
flags |= O_TRUNC;
|
flags |= O_TRUNC;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue