* mount.cc (mount_info::from_fstab): Skip native path prefix in
module path.
This commit is contained in:
parent
59c7f5bcdf
commit
661efd2dea
|
@ -1,3 +1,8 @@
|
|||
2008-04-29 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* mount.cc (mount_info::from_fstab): Skip native path prefix in
|
||||
module path.
|
||||
|
||||
2008-04-29 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* syscalls.cc (rename): Use volume serial numbers stored in path_conv
|
||||
|
|
|
@ -871,7 +871,8 @@ bool
|
|||
mount_info::from_fstab (bool user)
|
||||
{
|
||||
tmp_pathbuf tp;
|
||||
PWCHAR path = tp.w_get ();
|
||||
PWCHAR path_buf = tp.w_get ();
|
||||
PWCHAR path = path_buf;
|
||||
PWCHAR w;
|
||||
|
||||
if (!GetModuleFileNameW (GetModuleHandleW (L"cygwin1.dll"),
|
||||
|
@ -880,6 +881,12 @@ mount_info::from_fstab (bool user)
|
|||
debug_printf ("GetModuleFileNameW, %E");
|
||||
return false;
|
||||
}
|
||||
if (!wcsncmp (path, L"\\\\?\\", 4))
|
||||
{
|
||||
path += 4;
|
||||
if (path[1] != L':')
|
||||
*(path += 2) = L'\\';
|
||||
}
|
||||
w = wcsrchr (path, L'\\');
|
||||
if (w)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue