OSDN Git Service

*dir.cc (readdir_r): Invert sense on error-test.
authorcgf <cgf>
Sun, 28 Aug 2005 16:30:46 +0000 (16:30 +0000)
committercgf <cgf>
Sun, 28 Aug 2005 16:30:46 +0000 (16:30 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/dir.cc

index a540211..f7fb2ca 100644 (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>
        
        * path.cc (normalize_posix_path): Keep two leading slashes
index e2247e2..bbb4ca1 100644 (file)
@@ -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;