* 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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user