* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix length
check for ".." dir.
This commit is contained in:
		| @@ -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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user