* 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.
This commit is contained in:
Corinna Vinschen 2010-09-01 10:30:52 +00:00
parent 41073b47f5
commit 20973ec948
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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;
}

View File

@ -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;
}