forked from Bananymous/banan-os
LibC: Remove O_DIRECTORY from opendir()
opendir() did not work on symlinks after with this flag...
This commit is contained in:
parent
e7a06979ec
commit
aa03274093
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue