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:
authorCorinna Vinschen <corinna@vinschen.de>2002-11-25 18:11:39 +0300
committerCorinna Vinschen <corinna@vinschen.de>2002-11-25 18:11:39 +0300
commitefcaf0426a406b43799cc899e3d6bd00d0f777e1 (patch)
treed09565e3f6bd5281ae5382ef1c580ddfc25b4ae7 /winsup/cygwin/passwd.cc
parentf1da8a066438b2323253e11b10a4037205c1b3c2 (diff)
* passwd.cc (read_etc_passwd): Never add an entry when starting
on Win95/98/ME if a default entry is present. * uinfo.cc (internal_getlogin): Look for the default uid if needed. Always call user.set_name ().
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r--winsup/cygwin/passwd.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc
index ae962822f..3677f8d13 100644
--- a/winsup/cygwin/passwd.cc
+++ b/winsup/cygwin/passwd.cc
@@ -198,6 +198,8 @@ read_etc_passwd ()
&& (searchentry = !internal_getpwsid (tu)))
default_uid = DEFAULT_UID_NT;
}
+ else if (myself->uid == ILLEGAL_UID)
+ searchentry = !search_for (DEFAULT_UID, NULL);
if (searchentry &&
(!(pw = search_for (0, cygheap->user.name ())) ||
(myself->uid != ILLEGAL_UID &&