diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-08 16:12:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-08 16:12:24 +0000 |
commit | 9794095354b761547fd78720c7631153dc138b3d (patch) | |
tree | 5fe9ee11d25f53f3d3e02dc9b40c0da939711952 /winsup/cygwin/mount.cc | |
parent | 3322254d27aed9cf6cea9b9aa7ad83284cc689d8 (diff) | |
download | cygnal-9794095354b761547fd78720c7631153dc138b3d.tar.gz cygnal-9794095354b761547fd78720c7631153dc138b3d.tar.bz2 cygnal-9794095354b761547fd78720c7631153dc138b3d.zip |
* 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.cc | 2 |
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, |