* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix length
check for ".." dir.
This commit is contained in:
parent
e684ace44e
commit
719ffe8792
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue