* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_type

for virtual directories.
This commit is contained in:
Corinna Vinschen 2014-10-09 13:32:59 +00:00
parent 54338f169f
commit 0613efefc7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-10-09 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_type
for virtual directories.
2014-10-09 Corinna Vinschen <corinna@vinschen.de> 2014-10-09 Corinna Vinschen <corinna@vinschen.de>
* fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type. * fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.

View File

@ -2046,7 +2046,8 @@ fhandler_disk_file::readdir_helper (DIR *dir, dirent *de, DWORD w32_err,
fname->Length = 0; fname->Length = 0;
return geterrno_from_win_error (w32_err); return geterrno_from_win_error (w32_err);
} }
if (de->d_ino == 2) /* Inode number for virtual dirs. */
de->d_type = DT_DIR;
attr = 0; attr = 0;
dir->__flags &= ~dirent_set_d_ino; dir->__flags &= ~dirent_set_d_ino;
} }