Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-05-24 14:07:49 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-05-24 14:07:49 +0400
commit0fd62c686d9297460a40dcf28932683276d516dc (patch)
treeb7036968b90695b7ba1f3ea3757cd0c3f5755205 /winsup/cygwin/mount.cc
parent362ce9fa9958fa5cab6820da8117c6ace28a2349 (diff)
* mount.cc (mount_info::init): Recreate path when trying to read the
user fstab file.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index eb10425d0..77de8f2c3 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -125,7 +125,9 @@ mount_info::init ()
{
create_root_entry (path);
pathend = wcpcpy (pathend, L"\\etc\\fstab");
- if (from_fstab (false, path, pathend) | from_fstab (true, path, pathend)) /* The single | is correct! */
+ if (from_fstab (false, path, pathend) /* The single | is correct! */
+ | from_fstab (true, path, wcpcpy (find_root_from_cygwin_dll (path),
+ L"\\etc\\fstab")))
return;
}
@@ -923,7 +925,7 @@ mount_info::from_fstab (bool user, WCHAR fstab[], PWCHAR fstab_end)
sys_mbstowcs (wcpcpy (fstab_end, L".d\\"),
NT_MAX_PATH - (fstab_end - fstab),
cygheap->user.name ());
- debug_printf ("Try to read mounts from %W", fstab);
+ system_printf ("Try to read mounts from %W", fstab);
HANDLE h = CreateFileW (fstab, GENERIC_READ, FILE_SHARE_READ, &sec_none_nih,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h == INVALID_HANDLE_VALUE)