forked from Bananymous/banan-os
Kernel: allow open() call with O_SEARCH
This commit is contained in:
parent
7a5d5cabad
commit
e31080bce3
|
@ -451,7 +451,7 @@ namespace Kernel
|
|||
|
||||
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);
|
||||
|
||||
BAN::String absolute_path = TRY(absolute_path_of(path));
|
||||
|
|
Loading…
Reference in New Issue