summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 128b35aa4..305bb9ba6 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -605,6 +605,14 @@ struct dos_drive_mappings
wchar_t *fixup_if_match (wchar_t *path)
{
+ /* Check for network drive first. */
+ if (!wcsncmp (path, L"\\Device\\Mup\\", 12))
+ {
+ path += 10;
+ path[0] = L'\\';
+ return path;
+ }
+ /* Then test local drives. */
for (mapping *m = mappings; m; m = m->next)
if (!wcsncmp (m->mapping, path, m->len))
{