LibC: Remove O_DIRECTORY from opendir()
opendir() did not work on symlinks after with this flag...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user