diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d715b5139..021531127 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-10-15 Corinna Vinschen + + * fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert + native NT network paths into DOS UNC paths. + 2011-10-15 Corinna Vinschen * sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID on 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)) {