patch for "gone - no logout" output from last(1)
Darren Tucker
dtucker at zip.com.au
Thu Apr 8 11:10:21 EST 2004
John P. Eisenmenger wrote:
> After upgrading one of my systems to the linux 2.6.4 kernel, it started
> having problems recording the logout entries in the wtmp file. I traced
> this to a bug in loginrec.c, where a variable (line) is declared as an
> array of 8 characters. This length is substantially shorter than the 16
> character array size of ut_line, so openssh effectively truncates the
> pseudo-tty name when the pseudo-tty number exceeds 999. With the new
> linux kernels, the pseudo-ttys are not reused as in the past
Is that deliberate? Sounds like a kernel bug...
[snip]
> Below is my version of the patch.
Seems reasonable, applied. Thanks.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list