Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-08-28 20:30:48 +0400
committerChristopher Faylor <me@cgf.cx>2005-08-28 20:30:48 +0400
commit988e9165e9f47b387fc88f144ff36f2866047327 (patch)
treeb2a620f7a3fba9dd9cf373d4b3fb4a45b56bd469 /winsup/cygwin
parent970fabec27391531d5738f5893f8113e6093ba4e (diff)
*dir.cc (readdir_r): Invert sense on error-test.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dir.cc2
2 files changed, 6 insertions, 1 deletions
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 <cygwin-patch.buzz@bavag.tmfweb.nl>
+
+ *dir.cc (readdir_r): Invert sense on error-test.
+
+
2005-08-25 Corinna Vinschen <corinna@vinschen.de>
* 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;