mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 16:01:10 +08:00
* passwd.cc (pg_ent::setent): Initialize cygheap domain info.
* sec_auth.cc (get_logon_server): Ditto.
This commit is contained in:
parent
dfd2ffdcc1
commit
50db0deb25
@ -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>
|
||||
|
||||
* external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and
|
||||
|
@ -296,6 +296,7 @@ pg_ent::clear_cache ()
|
||||
void
|
||||
pg_ent::setent (bool _group, int _enums, PCWSTR _enum_tdoms)
|
||||
{
|
||||
cygheap->dom.init ();
|
||||
endent (_group);
|
||||
if (!_enums && !_enum_tdoms)
|
||||
{
|
||||
|
@ -224,7 +224,9 @@ get_logon_server (PWCHAR domain, WCHAR *server, ULONG flags)
|
||||
PDOMAIN_CONTROLLER_INFOW pci;
|
||||
|
||||
/* 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 ());
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user