Chop off excessive long hostnames to keep the table structure intact.
This makes lastlogin(8) use exactly the same printf format as last(1).
This commit is contained in:
parent
e17e52b7e2
commit
ee51a24382
@ -91,7 +91,7 @@ output(struct utmpx *u)
|
||||
{
|
||||
time_t t = u->ut_tv.tv_sec;
|
||||
|
||||
printf("%-10s %-8s %-22s %s",
|
||||
printf("%-10s %-8s %-22.22s %s",
|
||||
u->ut_user, u->ut_line, u->ut_host, ctime(&t));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user