file: handle O_NOCTTY in fileflagstovnodeflags

This commit is contained in:
Matheus
2024-05-08 20:18:10 -03:00
parent bf841406d5
commit c894352bc8
+2
View File
@@ -64,6 +64,8 @@ static inline int fileflagstovnodeflags(int flags) {
vnflags |= V_FFLAGS_WRITE;
if (flags & O_NONBLOCK)
vnflags |= V_FFLAGS_NONBLOCKING;
if (flags & O_NOCTTY)
vnflags |= V_FFLAGS_NOCTTY;
return vnflags;
}