summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/mount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 94e305489..6cf3ddf46 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -468,19 +468,19 @@ mount_info::create_root_entry (const PWCHAR root)
/* init: Initialize the mount table. */
void
-mount_info::init ()
+mount_info::init (bool user_init)
{
PWCHAR pathend;
WCHAR path[PATH_MAX];
pathend = wcpcpy (path, cygheap->installation_root);
- create_root_entry (path);
- pathend = wcpcpy (pathend, L"\\etc\\fstab");
+ if (!user_init)
+ create_root_entry (path);
- from_fstab (false, path, pathend);
- from_fstab (true, path, pathend);
+ pathend = wcpcpy (pathend, L"\\etc\\fstab");
+ from_fstab (user_init, path, pathend);
- if (!got_usr_bin || !got_usr_lib)
+ if (!user_init && (!got_usr_bin || !got_usr_lib))
{
char native[PATH_MAX];
if (root_idx < 0)