* cygheap.h (class cygheap_user): Add psystemroot member and
env_systemroot method. * environ.cc (struct spenv): Add add_always member. (spenvs): Accomodate new add_always member. Add cygheap_user::env_systemroot method to SYSTEMROOT entry. (build_env): Check add_always member when adding missing environment variables from spenvs. * uinfo.cc (cygheap_user::env_systemroot): New method.
This commit is contained in:
@@ -106,6 +106,7 @@ class cygheap_user
|
||||
char *pdomain; /* Logon domain of the user */
|
||||
char *homedrive; /* User's home drive */
|
||||
char *homepath; /* User's home path */
|
||||
char *psystemroot; /* Value of SYSTEMROOT */
|
||||
char *pwinname; /* User's name as far as Windows knows it */
|
||||
char *puserprof; /* User profile */
|
||||
cygsid effec_cygsid; /* buffer for user's SID */
|
||||
@@ -146,6 +147,7 @@ public:
|
||||
const char *env_userprofile (const char *, size_t);
|
||||
const char *env_domain (const char *, size_t);
|
||||
const char *env_name (const char *, size_t);
|
||||
const char *env_systemroot (const char *, size_t);
|
||||
|
||||
const char *logsrv ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user