* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix typo which caused

test for ".." to be skipped.
This commit is contained in:
Christopher Faylor 2006-05-08 15:20:04 +00:00
parent 6c47d5b7e7
commit 56aed3f578
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-05-08 Christian Franke <Christian.Franke@t-online.de>
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix typo which
caused test for ".." to be skipped.
2006-05-02 Christopher Faylor <cgf@timesys.com>
* external.cc (cygwin_internal): Set errno on failure.

View File

@ -1787,7 +1787,7 @@ fhandler_disk_file::readdir (DIR *dir, dirent *de)
dir->__flags |= dirent_saw_dot;
res = 0;
}
else if (!(dir->__flags & dirent_saw_dot))
else if (!(dir->__flags & dirent_saw_dot_dot))
{
strcpy (de->d_name , "..");
de->d_ino = readdir_get_ino (dir, pc.normalized_path, true);