christos
fa438ee608
- Use O_DIRECTORY to open the file, so that we don't need to stat() after
that. - Move the stat() call to fdopendir() and change it's error handling so that it does not hide errors. - According to POSIX, fdopendir() transfers ownership of the fd only on success, so don't close it on failure. XXX: We still make it non-blocking on failure, but that's nitpicking. XXX: pullup-7?
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%