diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2024-03-20 12:34:51 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2024-03-20 12:34:51 +0100 |
commit | 80f722e97cf79b6ce64b2d665e059c5b7e15d416 (patch) | |
tree | 15c30e8ec763509176e0bf78c9d35acfe1c3c804 /winsup/cygwin/release | |
parent | 17191696040a59dfbdc092d0ffe938a17039baed (diff) | |
download | newlib-80f722e97cf79b6ce64b2d665e059c5b7e15d416.zip newlib-80f722e97cf79b6ce64b2d665e059c5b7e15d416.tar.gz newlib-80f722e97cf79b6ce64b2d665e059c5b7e15d416.tar.bz2 |
Cygwin: opendir(3): move ENOTDIR check into main function
So far the check for a directory is in the fhandler::opendir
methods. Given that path_conv::check sets FILE_ATTRIBUTE_DIRECTORY
on virtual files either, we can move the check up into the
opendir(3) function. This avoids calling exists() twice when
calling opendir(3).
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/release')
0 files changed, 0 insertions, 0 deletions