Project

General

Profile

Actions

Bug #6057

open

login(1) "Last login" hostname is too short

Added by Lauri Tirkkonen about 6 years ago. Updated over 1 year ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-07-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

The hostname field for the "Last login" line is only 16 characters long, way
too short to be useful for IPv6 addresses, for example. This limitation seems
to come from
http://src.illumos.org/source/xref/illumos-gate/usr/src/head/lastlog.h#55:

char    ll_host[16];        /* same as in utmp */

However, utmpx.h defines ut_host as 257 bytes long, so perhaps lastlog.h should
be changed to match. This might break existing lastlog files though?

Actions

Also available in: Atom PDF