Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-15 00:36:42 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-15 00:36:42 +0400
commita77d35f7d207dc7c940a1bef94d42ca66795cb2d (patch)
tree529c34985fbe46ae9f1cabc6392bfaf271c94a22 /winsup/cygwin/cygheap.h
parent9a771b2961695d00d4bc4a47deae7e6113b2cd01 (diff)
* 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.h4
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 */