diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-14 20:36:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-14 20:36:42 +0000 |
commit | a77d35f7d207dc7c940a1bef94d42ca66795cb2d (patch) | |
tree | 529c34985fbe46ae9f1cabc6392bfaf271c94a22 /winsup/cygwin/cygheap.h | |
parent | 9a771b2961695d00d4bc4a47deae7e6113b2cd01 (diff) | |
download | cygnal-a77d35f7d207dc7c940a1bef94d42ca66795cb2d.tar.gz cygnal-a77d35f7d207dc7c940a1bef94d42ca66795cb2d.tar.bz2 cygnal-a77d35f7d207dc7c940a1bef94d42ca66795cb2d.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 16a817c17..d50e16eea 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -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 */ |