* 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:
@@ -103,6 +103,7 @@ class cygheap_user
|
||||
char *pdomain; /* Logon domain of the user */
|
||||
char *homedrive; /* User's home drive */
|
||||
char *homepath; /* User's home path */
|
||||
char *winname; /* User's name as far as Windows knows it */
|
||||
PSID psid; /* buffer for user's SID */
|
||||
PSID orig_psid; /* Remains intact even after impersonation */
|
||||
static char homedrive_env_buf[3]; /* Where the HOMEDRIVE environment variable
|
||||
|
Reference in New Issue
Block a user