Subject: [PATCH v2 2/2] Cygwin: expose all windows volume mount points.
Jeremy Drake
cygwin@jdrake.com
Tue Feb 11 04:16:41 GMT 2025
Realized an oversight (besides the messed-up subject!) after sending:
> @@ -1943,14 +1961,6 @@ extern "C" FILE *
> setmntent (const char *filep, const char *)
> {
> _my_tls.locals.iteration = 0;
> - _my_tls.locals.available_drives = GetLogicalDrives ();
> - /* Filter floppy drives on A: and B: */
> - if ((_my_tls.locals.available_drives & 1)
> - && get_disk_type (L"A:") == DT_FLOPPY)
> - _my_tls.locals.available_drives &= ~1;
> - if ((_my_tls.locals.available_drives & 2)
> - && get_disk_type (L"B:") == DT_FLOPPY)
> - _my_tls.locals.available_drives &= ~2;
should have something like
+ if (_my_tls.locals.drivemappings)
+ {
+ delete _my_tls.locals.drivemappings;
+ _my_tls.locals.drivemappings = NULL;
+ }
here
More information about the Cygwin-patches
mailing list