Kernel: Don't validate O_SEARCH for non-directories
This commit is contained in:
parent
1ac7629459
commit
25099b4c98
|
@ -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)
|
||||
{ }
|
||||
|
|
Loading…
Reference in New Issue