diff --git a/userspace/libraries/LibC/dirent.cpp b/userspace/libraries/LibC/dirent.cpp index fe705e66bb..d3c4329987 100644 --- a/userspace/libraries/LibC/dirent.cpp +++ b/userspace/libraries/LibC/dirent.cpp @@ -55,7 +55,7 @@ DIR* fdopendir(int fd) DIR* opendir(const char* dirname) { - int fd = open(dirname, O_RDONLY | O_DIRECTORY); + int fd = open(dirname, O_RDONLY); if (fd == -1) return nullptr; return fdopendir(fd);