Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-05-22 04:54:22 +0400
committerChristopher Faylor <me@cgf.cx>2000-05-22 04:54:22 +0400
commit7054be8b55c2f06303b0b9111dabba0ca8abe999 (patch)
treeb5fc9f975dfe15a51103e4f5f484ddea0a157db2 /winsup/cygwin/uinfo.cc
parentc9ae5a27b3b538b907c4ef4f6fe4190e3ca204c1 (diff)
* dcrt0.cc (dll_crt0_1): Move uinfo_init call to before sigproc_init to avoid a
race. (noload): Add an extra argument for debugging. * uinfo.cc (uinfo_init): Eliminate test for multiple calls. (getlogin): Assume that uinfo_init has already been called.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 3bab25c48..97c754ce6 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -109,9 +109,6 @@ uinfo_init ()
{
struct passwd *p;
- if (myself->username[0])
- return;
-
myself->psid = (PSID) myself->sidbuf;
if ((p = getpwnam (internal_getlogin (myself))) != NULL)
{
@@ -140,7 +137,6 @@ getlogin (void)
static NO_COPY char this_username[MAX_USER_NAME];
#endif
- uinfo_init ();
return strcpy (this_username, myself->username);
}