* 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 ().
This commit is contained in:
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user