Hello, On Mon, Sep 02, 2019 at 01:21:43PM +0200, Marc Haber wrote: > Package: util-linux > Version: 2.33.1-0.1 > Severity: normal > File: /usr/bin/last > Tags: ipv6 > > Hi, > > [2/4990]mh@torres:~ $ last | head -n 1 > mh pts/5 2a01:238:4071:32 Mon Sep 2 13:19 still logged in > [3/4991]mh@torres:~ $ > > The IP address cut off at the interesting point makes the information > useless. I know that I can use last -d, but maybe I'd want the complete > IP address.
FWIW you can use the '-w' flag which will switch from the default "domain_len'[1][2] to using the utmpx ut_host size as documented in man utmpx[3] (UT_HOSTSIZE). (Which is bigger, but also has no guarantee of not being truncated..... or even completely false! See 'man utmp'.) While outputting misleading information (which is worse than "obviously/identifyably wrong") the last command is documented as deprecated and only preserved for legacy reasons. It's becoming increasingly rare for utmp / wtmp information to be updated at all, so noone should really rely on this information in this day and age. With this said, I think unless the previously given information is considered a solution in itself the alternative is that this is to be considered a wontfix issue. [1]: https://sources.debian.org/src/util-linux/2.34-0.1/login-utils/last.c/#L64 [2]: https://sources.debian.org/src/util-linux/2.34-0.1/login-utils/last.c/#L905 [3]: https://manpages.debian.org/buster/manpages/utmpx.5.en.html#DESCRIPTION Regards, Andreas Henriksson

