* 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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user