Core/File: Fix OpenMode_MustExist for Linux
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user