0
0
Fork 0
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:
Jason Volk 2020-09-28 22:23:56 -07:00
parent 95cb3df160
commit 9c82dad2f7

View file

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