* cygheap.h (cygheap_user): Add static members to hold home{drive,path} info.

* uinfo.cc (cygheap_user::ontherange): Use static class members for local HOME*
storage.
This commit is contained in:
Christopher Faylor
2002-06-14 20:36:42 +00:00
parent 9a771b2961
commit a77d35f7d2
3 changed files with 38 additions and 24 deletions

View File

@ -105,6 +105,10 @@ class cygheap_user
char *homepath; /* User's home path */
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
info may live. */
static char homepath_env_buf[MAX_PATH + 1]; /* Where the HOMEPATH environment
variable info may live. */
public:
__uid32_t orig_uid; /* Remains intact even after impersonation */
__gid32_t orig_gid; /* Ditto */