* dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares.

* path.cc (mount_info::conv_to_win32_path): Set flags to binary when mount
entry is not found.
(mount_info::set_flags_from_win32_path): Ditto.
This commit is contained in:
Christopher Faylor
2002-06-05 04:01:43 +00:00
parent 147d2ab494
commit ce006ffa7f
39 changed files with 60 additions and 62 deletions

View File

@ -718,6 +718,9 @@ handle_to_fn (HANDLE h, char *posix_fn)
#else
#define DEVICE_PREFIX "\\device\\"
#define DEVICE_PREFIX_LEN sizeof(DEVICE_PREFIX) - 1
#define REMOTE "\\Device\\LanmanRedirector\\"
#define REMOTE_LEN sizeof (REMOTE) - 1
static char *
handle_to_fn (HANDLE h, char *posix_fn)
{
@ -794,6 +797,13 @@ handle_to_fn (HANDLE h, char *posix_fn)
memcpy (w32, maxmatchdos, n);
w32[n] = '\\';
}
else if (strncasematch (w32, REMOTE, REMOTE_LEN))
{
w32 += REMOTE_LEN - 2;
*w32 = '\\';
debug_printf ("remote drive");
}
debug_printf ("derived path '%s'", w32);
cygwin_conv_to_full_posix_path (w32, posix_fn);