[1841] in linux-net channel archive
Re: output from 'last'
daemon@ATHENA.MIT.EDU (Kai Schulte)
Mon Feb 5 01:06:04 1996
Date: Sun, 4 Feb 1996 22:06:14 +0100 (MEZ)
From: Kai Schulte <sp0005@aixrs1.hrz.uni-essen.de>
Cc: Linux NET mailing list <linux-net@vger.rutgers.edu>
In-Reply-To: <Pine.ULT.3.91.960204025225.18610G-100000@noether.math.uwaterloo.ca>
To: ;@unlisted-recipients (no To-header on input)
On Sun, 4 Feb 1996, Jan Vicherek wrote:
> mamama ttyp5 123.123.123.12 Fri Jan 26 19:28 - 19:53 (00:25)
>
>
> Is there anything anybody can do about it ? Where does 'last' come from ?
> Is the length 14 standartized somewhere ?
No, it is usually 16 (not very useful either because most of the time it
will contain truncated resolved addresses). The variable is utmp.ut_host
in utmp.h, and linux defines its length to UT_HOSTSIZE in the same file.
> Are there pgms out there that rely on the size of this field being 14 ?
> (it *should* be 15 :-( )
Well, there is quite a bunch of hacky-wacky shell scripts that process the
'who' output and they might gag...
Kai