mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::fs: Add missing O_TRUNC -> std::ios::trunc in options parseback.
This commit is contained in:
parent
95cb3df160
commit
9c82dad2f7
1 changed files with 3 additions and 0 deletions
|
@ -2378,6 +2378,9 @@ const
|
|||
if((ret.flags & O_RDWR) == O_RDWR)
|
||||
ret.mode = std::ios::in | std::ios::out;
|
||||
|
||||
if((ret.flags & O_TRUNC) == O_TRUNC)
|
||||
ret.mode = std::ios::trunc;
|
||||
|
||||
ret.direct = ret.flags & O_DIRECT;
|
||||
ret.cloexec = ret.flags & O_CLOEXEC;
|
||||
ret.create = ret.flags & O_CREAT;
|
||||
|
|
Loading…
Reference in a new issue