* 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:
Christopher Faylor
2002-06-14 21:46:19 +00:00
parent b56d7e7937
commit 6d171b4482
5 changed files with 20 additions and 7 deletions

View File

@ -765,8 +765,8 @@ static NO_COPY spenv spenvs[] =
{"LOGONSERVER=", &cygheap_user::env_logsrv},
{"SYSTEMDRIVE=", NULL},
{"SYSTEMROOT=", NULL},
{"USERDOMAIN=", &cygheap_user::env_name},
{"USERNAME=", &cygheap_user::env_domain},
{"USERDOMAIN=", &cygheap_user::env_domain},
{"USERNAME=", &cygheap_user::env_name},
{"USERPROFILE=", &cygheap_user::env_userprofile},
};
@ -939,6 +939,7 @@ build_env (const char * const *envp, char *&envblock, int &envc,
of buffer */
}
debug_printf ("envp %p, envc %d", newenv, envc);
return newenv;
}