forked from Bananymous/banan-os
Kernel: Fix fcntl F_SETFL and masking
This commit is contained in:
@@ -210,7 +210,7 @@ namespace Kernel
|
|||||||
return m_open_files[fd].status_flags();
|
return m_open_files[fd].status_flags();
|
||||||
case F_SETFL:
|
case F_SETFL:
|
||||||
extra &= O_APPEND | O_DSYNC | O_NONBLOCK | O_RSYNC | O_SYNC;
|
extra &= O_APPEND | O_DSYNC | O_NONBLOCK | O_RSYNC | O_SYNC;
|
||||||
m_open_files[fd].status_flags() &= ~O_ACCMODE;
|
m_open_files[fd].status_flags() &= O_ACCMODE;
|
||||||
m_open_files[fd].status_flags() |= extra;
|
m_open_files[fd].status_flags() |= extra;
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user