* path.cc (cygdrive_getmntent): Do not skip over drives of type

DRIVE_REMOVABLE.
* fhandler.cc (fhandler_base::lseek): Be more paranoid when constructing
offsets from 64 bit value.
* syscalls.cc (logout): Avoid temp buffer memcpy since new scheme does not
require it.
(utmp_data): Rework as a macro which returns a pointer into a buffer.
(getutent): Use new buffer allocation mechanism to grab a utmp buffer.
(getutid): Ditto.
(pututline): Ditto.
This commit is contained in:
Christopher Faylor
2003-08-05 04:49:44 +00:00
parent 3fea2e4087
commit 4423d92489
4 changed files with 64 additions and 32 deletions

View File

@ -2539,8 +2539,7 @@ cygdrive_getmntent ()
break;
__small_sprintf (native_path, "%c:\\", drive);
if (GetDriveType (native_path) == DRIVE_REMOVABLE ||
GetFileAttributes (native_path) == INVALID_FILE_ATTRIBUTES)
if (GetFileAttributes (native_path) == INVALID_FILE_ATTRIBUTES)
{
available_drives &= ~mask;
continue;