* cygheap.h (cygheap_user::userprofile_env_buf): New static member.
* environ.cc (build_env): Add debugging statement. (spenvs): Switch functions for USERDOMAIN and USERNAME. * spawn.cc (spawn_guts): Move environment initialization prior to cygheap_setup_for_child or environment info will never be copied to child.
This commit is contained in:
@ -109,6 +109,9 @@ class cygheap_user
|
||||
info may live. */
|
||||
static char homepath_env_buf[MAX_PATH + 1]; /* Where the HOMEPATH environment
|
||||
variable info may live. */
|
||||
static char userprofile_env_buf[MAX_PATH + 1]; /* Where the USERPROFILE
|
||||
environment variable info
|
||||
may live. */
|
||||
public:
|
||||
__uid32_t orig_uid; /* Remains intact even after impersonation */
|
||||
__gid32_t orig_gid; /* Ditto */
|
||||
|
Reference in New Issue
Block a user