Kernel: Fix directory permissions

We did not care about X bit in directories and instead used only the
R bit for search/read.
This commit is contained in:
2023-09-08 11:46:53 +03:00
parent 660f7cbfeb
commit 39a5c52088
10 changed files with 73 additions and 34 deletions

View File

@@ -58,7 +58,7 @@ DIR* fdopendir(int fd)
DIR* opendir(const char* dirname)
{
int fd = open(dirname, O_SEARCH);
int fd = open(dirname, O_RDONLY);
if (fd == -1)
return nullptr;
return fdopendir(fd);