From 0833d7b43ff26320151739dbcd792500a1b05411 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 19 Dec 2023 00:20:15 +0200 Subject: [PATCH] Kernel: Allow opening files with O_NONBLOCK --- kernel/kernel/OpenFileDescriptorSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/OpenFileDescriptorSet.cpp b/kernel/kernel/OpenFileDescriptorSet.cpp index 24ab36aa..8693d6e7 100644 --- a/kernel/kernel/OpenFileDescriptorSet.cpp +++ b/kernel/kernel/OpenFileDescriptorSet.cpp @@ -55,7 +55,7 @@ namespace Kernel BAN::ErrorOr OpenFileDescriptorSet::open(BAN::StringView absolute_path, int flags) { - if (flags & ~(O_RDONLY | O_WRONLY | O_NOFOLLOW | O_SEARCH | O_APPEND | O_TRUNC | O_CLOEXEC | O_TTY_INIT | O_DIRECTORY)) + if (flags & ~(O_RDONLY | O_WRONLY | O_NOFOLLOW | O_SEARCH | O_APPEND | O_TRUNC | O_CLOEXEC | O_TTY_INIT | O_DIRECTORY | O_NONBLOCK)) return BAN::Error::from_errno(ENOTSUP); int access_mask = O_EXEC | O_RDONLY | O_WRONLY | O_SEARCH;