* fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert

native NT network paths into DOS UNC paths.
This commit is contained in:
Corinna Vinschen 2011-10-15 19:13:57 +00:00
parent c52fd6cd47
commit a9cc13a8e0
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-10-15 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert
native NT network paths into DOS UNC paths.
2011-10-15 Corinna Vinschen <corinna@vinschen.de>
* sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID on

View File

@ -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))
{