* passwd.cc (pg_ent::setent): Initialize cygheap domain info.

* sec_auth.cc (get_logon_server): Ditto.
This commit is contained in:
Corinna Vinschen 2014-02-19 18:29:52 +00:00
parent dfd2ffdcc1
commit 50db0deb25
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-19 Corinna Vinschen <corinna@vinschen.de>
* passwd.cc (pg_ent::setent): Initialize cygheap domain info.
* sec_auth.cc (get_logon_server): Ditto.
2014-02-18 Corinna Vinschen <corinna@vinschen.de> 2014-02-18 Corinna Vinschen <corinna@vinschen.de>
* external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and * external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and

View File

@ -296,6 +296,7 @@ pg_ent::clear_cache ()
void void
pg_ent::setent (bool _group, int _enums, PCWSTR _enum_tdoms) pg_ent::setent (bool _group, int _enums, PCWSTR _enum_tdoms)
{ {
cygheap->dom.init ();
endent (_group); endent (_group);
if (!_enums && !_enum_tdoms) if (!_enums && !_enum_tdoms)
{ {

View File

@ -224,7 +224,9 @@ get_logon_server (PWCHAR domain, WCHAR *server, ULONG flags)
PDOMAIN_CONTROLLER_INFOW pci; PDOMAIN_CONTROLLER_INFOW pci;
/* Empty domain is interpreted as local system */ /* Empty domain is interpreted as local system */
if (!domain[0] || !wcscasecmp (domain, cygheap->dom.account_flat_name ())) if (cygheap->dom.init ()
&& (!domain[0]
|| !wcscasecmp (domain, cygheap->dom.account_flat_name ())))
{ {
wcpcpy (wcpcpy (server, L"\\\\"), cygheap->dom.account_flat_name ()); wcpcpy (wcpcpy (server, L"\\\\"), cygheap->dom.account_flat_name ());
return true; return true;