Kernel: Don't validate O_SEARCH for non-directories

This commit is contained in:
Bananymous 2024-06-25 19:27:55 +03:00
parent 1ac7629459
commit 25099b4c98
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace Kernel
}
}
if (flags & (O_EXEC | O_SEARCH))
if ((flags & O_EXEC) || (mode().ifdir() && (flags & O_SEARCH)))
{
if (mode().mode & S_IXOTH)
{ }