3.6p1 bug on SCO OpenServer
Roger Cornelius
rac at tenzing.org
Sat Sep 6 02:50:47 EST 2003
SCO OpenServer 5.0.x
Openssh 3.6p1
loginrec.c writes incorrect data into the ut_id field of the utmp file.
This has been an issue since at least openssh 3.0.2 but I never bothered
to report it. For Openssh 3.6p1, defining WITH_ABBREV_NO_TTY corrects
the problem. Below is a brief patch to configure which does this. You
can observe the errant results in the "Line" column from the output
of /usr/bin/last:
Script started on Fri Sep 5 12:05:37 2003
$ /usr/bin/last -n 5 rac
User Line Device PID Login time Elapsed Time Comments
rac p8 ttyp8 28825 Fri Sep 5 12:14 00:20 logged in
rac typ2 ttyp2 1168 Thu Sep 4 19:25 16:40 logged in
rac typ1 ttyp1 1023 Thu Sep 4 19:14 16:51 logged in
rac typ0 ttyp0 1013 Thu Sep 4 19:14 16:51 logged in
rac yp24 ttyp24 16191 Wed Sep 3 09:21 1d 23:04 ??
$
Script done on Fri Sep 5 12:05:54 2003
The first entry is a telnet login. All other entries are ssh logins.
Note the difference in the Line column between the telnet and ssh
entries. The output should look like this:
User Line Device PID Login time Elapsed Time Comments
rac p8 ttyp8 28825 Fri Sep 5 12:14 00:20 logged in
rac p2 ttyp2 1168 Thu Sep 4 19:25 16:40 logged in
rac p1 ttyp1 1023 Thu Sep 4 19:14 16:51 logged in
rac p0 ttyp0 1013 Thu Sep 4 19:14 16:51 logged in
rac p24 ttyp24 16191 Wed Sep 3 09:21 1d 23:04 ??
Here's the patch:
--8<-- cut here --8<--
*** configure.orig 2003-03-26 00:12:34.000000000 -0500
--- configure 2003-07-18 17:26:00.000000000 -0400
***************
*** 4588,4593 ****
--- 4588,4597 ----
#define DISABLE_FD_PASSING 1
_ACEOF
+ cat >>confdefs.h <<\_ACEOF
+ #define WITH_ABBREV_NO_TTY 1
+ _ACEOF
+
for ac_func in getluid setluid
--8<-- cut here --8<--
--
Roger Cornelius rac at tenzing.org
More information about the openssh-unix-dev
mailing list