From aa0327409345868e16015770733066faa735f58f Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 5 Aug 2024 00:55:03 +0300 Subject: [PATCH] LibC: Remove O_DIRECTORY from opendir() opendir() did not work on symlinks after with this flag... --- userspace/libraries/LibC/dirent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);