aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_registry.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-09-01 10:30:52 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-09-01 10:30:52 +0000
commit20973ec94886bf3b465f94430ea3d45eaaaf43a3 (patch)
tree3b9c58ea9b42013774ff2728c9794eacc45eedd3 /winsup/cygwin/fhandler_registry.cc
parent41073b47f55701c0eb25f069c3e7c42e908dcd4f (diff)
downloadnewlib-20973ec94886bf3b465f94430ea3d45eaaaf43a3.zip
newlib-20973ec94886bf3b465f94430ea3d45eaaaf43a3.tar.gz
newlib-20973ec94886bf3b465f94430ea3d45eaaaf43a3.tar.bz2
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r--winsup/cygwin/fhandler_registry.cc2
1 files changed, 1 insertions, 1 deletions
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;
}