4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-22 00:38:06 +08:00

*dir.cc (readdir_r): Invert sense on error-test.

This commit is contained in:
Christopher Faylor 2005-08-28 16:30:48 +00:00
parent 970fabec27
commit 988e9165e9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-08-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
*dir.cc (readdir_r): Invert sense on error-test.
2005-08-25 Corinna Vinschen <corinna@vinschen.de> 2005-08-25 Corinna Vinschen <corinna@vinschen.de>
* path.cc (normalize_posix_path): Keep two leading slashes * path.cc (normalize_posix_path): Keep two leading slashes

View File

@ -160,7 +160,7 @@ readdir_r (DIR *dir, dirent *de, dirent **ode)
else else
{ {
*ode = NULL; *ode = NULL;
if (res != ENMFILE) if (res == ENMFILE)
res = 0; res = 0;
} }
return res; return res;