* 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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user