diff options
Diffstat (limited to 'daemon/gdm-session-record.c')
-rw-r--r-- | daemon/gdm-session-record.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/daemon/gdm-session-record.c b/daemon/gdm-session-record.c index 32933ef0..487f1004 100644 --- a/daemon/gdm-session-record.c +++ b/daemon/gdm-session-record.c @@ -61,21 +61,8 @@ static void record_set_username (UTMP *u, - const char *user_name) + const char *username) { - const char *username; - - /* - * It is possible that PAM failed before it mapped the user - * input into a valid username, so we fallback to try using - * "(unknown)" - */ - if (user_name != NULL) { - username = user_name; - } else { - username = "(unknown)"; - } - #if defined(HAVE_UT_UT_USER) strncpy (u->ut_user, username, |