aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_netdrive.cc3
-rw-r--r--winsup/cygwin/fhandler_registry.cc2
3 files changed, 9 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e524c46..0a3ae60 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2010-09-01 Corinna Vinschen <corinna@vinschen.de>
+ * fhandler_netdrive.cc (fhandler_netdrive::readdir): Set d_type.
+ (fhandler_netdrive::seekdir): Fix test for readdir return value.
+ * fhandler_registry.cc (fhandler_registry::seekdir): Ditto.
+
+2010-09-01 Corinna Vinschen <corinna@vinschen.de>
+
* include/cygwin/version.h: Bump DLL minor version number to 8.
2010-08-31 Corinna Vinschen <corinna@vinschen.de>
diff --git a/winsup/cygwin/fhandler_netdrive.cc b/winsup/cygwin/fhandler_netdrive.cc
index f3339a6..bd826fc 100644
--- a/winsup/cygwin/fhandler_netdrive.cc
+++ b/winsup/cygwin/fhandler_netdrive.cc
@@ -250,6 +250,7 @@ fhandler_netdrive::readdir (DIR *dir, dirent *de)
if (de->d_ino <= UINT_MAX)
de->d_ino = hash_path_name (0, nro->lpRemoteName);
}
+ de->d_type = DT_DIR;
res = 0;
}
@@ -265,7 +266,7 @@ fhandler_netdrive::seekdir (DIR *dir, long pos)
if (pos < 0)
return;
while (dir->__d_position < pos)
- if (!readdir (dir, dir->__d_dirent))
+ if (readdir (dir, dir->__d_dirent))
break;
}
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index e414efb..478b9cc 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -657,7 +657,7 @@ fhandler_registry::seekdir (DIR * dir, long loc)
*/
rewinddir (dir);
while (loc > (dir->__d_position & REG_POSITION_MASK))
- if (!readdir (dir, dir->__d_dirent))
+ if (readdir (dir, dir->__d_dirent))
break;
}