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>2010-09-28 18:40:18 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-09-28 18:40:18 +0400
commit2f1f8815c037ee0387c30fba98689e544ab75c9a (patch)
tree58a54bb45cbd833ed7169a8669005e7468dbb1ec /winsup/cygwin/mount.cc
parent91e0b943a07e768bbdcd7d8da2b991eee41fc0c4 (diff)
* Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.
* autoload.cc: Add all advapi32 entry points. * mount.cc (mount_info::init): Read user fstab only if we have a username. * passwd.cc (pwdgrp::read_passwd): Only use username if we have one. * shared.cc (user_info::initialize): Set cb last so as not to override planned behaviour in pwdgrp::read_passwd. * uinfo.cc (cygheap_user::init): Fetch Windows username from environment variable $USERNAME. Don't set name in cygheap if variable is empty. (internal_getlogin): If we still have no username, try GetUserNameW.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index b862b5b17..95494c53f 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -467,7 +467,8 @@ mount_info::init ()
pathend = wcpcpy (pathend, L"\\etc\\fstab");
from_fstab (false, path, pathend);
- from_fstab (true, path, pathend);
+ if (cygheap->user.name () && *cygheap->user.name ())
+ from_fstab (true, path, pathend);
if (!got_usr_bin || !got_usr_lib)
{