* fhandler_disk_file.cc (num_entries): Take . and .. into account if they do

not exist since cygwin simulates them.
(fhandler_cygdrive::fstat): Ditto.
(fhandler_cygdrive::readdir): Don't do any specific tests on __d_position when
seeing if a drive exists.
This commit is contained in:
Christopher Faylor
2003-09-10 20:16:00 +00:00
parent 932a40e86b
commit 1aa76ad568
3 changed files with 23 additions and 14 deletions

View File

@@ -129,12 +129,14 @@ readdir (DIR *dir)
res = dir->__d_dirent;
strcpy (res->d_name, ".");
dir->__flags |= opendir_saw_dot;
dir->__d_position++;
}
else if (!(dir->__flags & opendir_saw_dot_dot))
{
res = dir->__d_dirent;
strcpy (res->d_name, "..");
dir->__flags |= opendir_saw_dot_dot;
dir->__d_position++;
}
}