missing file from previous checkin.

This commit is contained in:
Christopher Faylor 2005-03-16 21:21:18 +00:00
parent 2693c1ac56
commit 77e5f8975d
1 changed files with 12 additions and 20 deletions

View File

@ -1227,7 +1227,7 @@ fhandler_disk_file::seekdir (DIR *dir, _off64_t loc)
{ {
rewinddir (dir); rewinddir (dir);
while (loc > dir->__d_position) while (loc > dir->__d_position)
if (!readdir (dir)) if (!::readdir (dir))
break; break;
} }
@ -1326,15 +1326,7 @@ fhandler_cygdrive::telldir (DIR *dir)
void void
fhandler_cygdrive::seekdir (DIR *dir, _off64_t loc) fhandler_cygdrive::seekdir (DIR *dir, _off64_t loc)
{ {
if (!iscygdrive_root ())
return fhandler_disk_file::seekdir (dir, loc); return fhandler_disk_file::seekdir (dir, loc);
for (pdrive = get_win32_name (), dir->__d_position = -1; *pdrive;
pdrive = strchr (pdrive, '\0') + 1)
if (++dir->__d_position >= loc)
break;
return;
} }
void void