LibC: Remove O_DIRECTORY from opendir()

opendir() did not work on symlinks after with this flag...
This commit is contained in:
Bananymous 2024-08-05 00:55:03 +03:00
parent e7a06979ec
commit aa03274093
1 changed files with 1 additions and 1 deletions

View File

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