From 988e9165e9f47b387fc88f144ff36f2866047327 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 28 Aug 2005 16:30:48 +0000 Subject: [PATCH] *dir.cc (readdir_r): Invert sense on error-test. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/dir.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;