Hello,

Here is a simple patch which makes the behaviour of getmntent () consistent
with
the one of fhandler_cygdrive.

Pavel

2003-08-02  Pavel Tsekov  <[EMAIL PROTECTED]>

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

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
Index: path.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
retrieving revision 1.261
diff -u -p -r1.261 path.cc
--- path.cc     26 Jul 2003 04:53:59 -0000      1.261
+++ path.cc     2 Aug 2003 11:49:15 -0000
@@ -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;

Reply via email to