* globals.cc (__getlogin_username): Remove.
* uinfo.cc (getlogin_r): Fetch username from cygheap. (getlogin): Add static buffer username and fetch username from getlogin_r.
This commit is contained in:
@@ -56,9 +56,6 @@ bool display_title;
|
||||
bool strip_title_path;
|
||||
bool allow_glob = true;
|
||||
|
||||
/* Static getlogin buffer. */
|
||||
char __getlogin_username[UNLEN + 1];
|
||||
|
||||
bool NO_COPY in_forkee;
|
||||
|
||||
int __argc_safe;
|
||||
|
Reference in New Issue
Block a user