diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a540211e3..f7fb2ca8d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-08-27 Bas van Gompel + + *dir.cc (readdir_r): Invert sense on error-test. + + 2005-08-25 Corinna Vinschen * path.cc (normalize_posix_path): Keep two leading slashes diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index e2247e254..bbb4ca17f 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -160,7 +160,7 @@ readdir_r (DIR *dir, dirent *de, dirent **ode) else { *ode = NULL; - if (res != ENMFILE) + if (res == ENMFILE) res = 0; } return res;