* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix length

check for ".." dir.
This commit is contained in:
Corinna Vinschen 2009-08-14 18:27:18 +00:00
parent e684ace44e
commit 719ffe8792
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-08-14 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix length
check for ".." dir.
2009-08-14 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Change comment

View File

@ -1971,7 +1971,7 @@ go_ahead:
come first. */
if (FileNameLength == sizeof (WCHAR) && FileName[0] == '.')
de->d_ino = get_ino_by_handle (pc, get_handle ());
else if (FileNameLength == sizeof (WCHAR)
else if (FileNameLength == 2 * sizeof (WCHAR)
&& FileName[0] == L'.' && FileName[1] == L'.')
{
if (!(dir->__flags & dirent_isroot))