summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-08-05 04:49:44 +0000
committerChristopher Faylor <me@cgf.cx>2003-08-05 04:49:44 +0000
commit4423d92489cd1a3bbcd1657bfbdef2d8a4cbf71f (patch)
tree8604d1089cf63e257c52156722c46f2497616f7d /winsup/cygwin/path.cc
parent3fea2e408799e2a4539ddaf050331e877639a8aa (diff)
downloadcygnal-4423d92489cd1a3bbcd1657bfbdef2d8a4cbf71f.tar.gz
cygnal-4423d92489cd1a3bbcd1657bfbdef2d8a4cbf71f.tar.bz2
cygnal-4423d92489cd1a3bbcd1657bfbdef2d8a4cbf71f.zip
* 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.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 3ea799b3f..512720e8e 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -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;