(diropen): Don't bother trying to open directory for write access:

POSIX says that must fail.
This commit is contained in:
Paul Eggert committed 2005-12-27 07:55:03 +00:00
1 parent 8846a6bfdd
commit cc4d59e9cd
1 file changed
+1 -4
+1 -4
View File
@@ -203,10 +203,7 @@ static int
internal_function
diropen (char const *dir)
{
int fd = open (dir, O_RDONLY | O_DIRECTORY);
if (fd < 0)
fd = open (dir, O_WRONLY | O_DIRECTORY);
return fd;
return open (dir, O_RDONLY | O_DIRECTORY | O_NOCTTY | O_NONBLOCK);
}
FTS *