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-04-08 20:12:24 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-04-08 20:12:24 +0400
commit9794095354b761547fd78720c7631153dc138b3d (patch)
tree5fe9ee11d25f53f3d3e02dc9b40c0da939711952 /winsup/cygwin/mount.cc
parent3322254d27aed9cf6cea9b9aa7ad83284cc689d8 (diff)
* mount.cc (mount_info::from_fstab): Read user fstab files from
/etc/fstab.d/$USER to avoid user write access to /etc. * postinstall: Use variables for filenames. Create /etc/fstab.d dir with 01777 permissions.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index ba6f42bb1..83d45d5de 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -914,7 +914,7 @@ mount_info::from_fstab (bool user)
PWCHAR u = wcpcpy (w, L"\\etc\\fstab");
if (user)
- sys_mbstowcs (wcpcpy (u, L"."), NT_MAX_PATH - (u - path),
+ sys_mbstowcs (wcpcpy (u, L".d\\"), NT_MAX_PATH - (u - path),
cygheap->user.name ());
debug_printf ("Try to read mounts from %W", path);
HANDLE h = CreateFileW (path, GENERIC_READ, FILE_SHARE_READ, &sec_none_nih,