* cygheap.h (cygheap_user::winname): New field.

* cygheap.cc (cygheap_user::set_name): Clear winname when name changes.
* uinfo.cc (cygheap_user::env_logsrv): Avoid calculating server when Windows
user == SYSTEM.
(cygheap_user::env_domain): Set winname here too.
(cygheap_user::env_userprofile): Eliminate superfluous tests.
(cygheap_user::env_name): Seed winname by calling env_domain().
This commit is contained in:
Christopher Faylor
2002-06-16 05:26:14 +00:00
parent 5c8bce24b3
commit 5f25e1d11a
4 changed files with 29 additions and 8 deletions

View File

@@ -449,7 +449,9 @@ cygheap_user::set_name (const char *new_name)
cfree (plogsrv);
if (pdomain)
cfree (pdomain);
plogsrv = pdomain = NULL;
if (winname)
cfree (winname);
plogsrv = pdomain = winname = NULL;
}
BOOL