From 6d171b4482689bd1c8a49af94e57d451c8f66448 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 14 Jun 2002 21:46:19 +0000 Subject: * 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. --- winsup/cygwin/cygheap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/cygheap.h') diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index d50e16eea..f8777ccd9 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -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 */ -- cgit v1.2.3