summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/environ.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 737c68d7f..9ed6e4142 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -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;
}