* 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

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