Kernel: allow open() call with O_SEARCH

This commit is contained in:
Bananymous 2023-06-11 00:18:34 +03:00
parent 7a5d5cabad
commit e31080bce3
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ namespace Kernel
BAN::ErrorOr<int> Process::open(BAN::StringView path, int flags) BAN::ErrorOr<int> Process::open(BAN::StringView path, int flags)
{ {
if (flags & ~(O_RDONLY | O_WRONLY | O_NOFOLLOW)) if (flags & ~(O_RDONLY | O_WRONLY | O_NOFOLLOW | O_SEARCH))
return BAN::Error::from_errno(ENOTSUP); return BAN::Error::from_errno(ENOTSUP);
BAN::String absolute_path = TRY(absolute_path_of(path)); BAN::String absolute_path = TRY(absolute_path_of(path));