diff options
Diffstat (limited to 'login-utils/last.c')
-rw-r--r-- | login-utils/last.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/last.c b/login-utils/last.c index dbfa8aed1..38b92efc2 100644 --- a/login-utils/last.c +++ b/login-utils/last.c @@ -586,7 +586,7 @@ static int is_phantom(const struct last_control *ctl, struct utmp *ut) if (ut->UL_UT_TIME < ctl->boot_time.tv_sec) return 1; - pw = getpwnam(ut->ut_name); + pw = getpwnam(ut->ut_user); if (!pw) return 1; sprintf(path, "/proc/%u/loginuid", ut->ut_pid); |