mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 23:20:49 +02:00
commit bash-20110218 snapshot
This commit is contained in:
@@ -1638,7 +1638,11 @@ get_current_user_info ()
|
||||
/* Don't fetch this more than once. */
|
||||
if (current_user.user_name == 0)
|
||||
{
|
||||
#if defined (__TANDEM)
|
||||
entry = getpwnam (getlogin ());
|
||||
#else
|
||||
entry = getpwuid (current_user.uid);
|
||||
#endif
|
||||
if (entry)
|
||||
{
|
||||
current_user.user_name = savestring (entry->pw_name);
|
||||
|
||||
Reference in New Issue
Block a user