[25924] in Athena Bugs

home help back first fref pref prev next nref lref last post

xterm utmp problem with Linux root login

daemon@ATHENA.MIT.EDU (Robert A Basch)
Tue Aug 10 17:08:41 2004

Message-Id: <200408102108.i7AL8VqD010529@anhedonia.mit.edu>
To: bugs@mit.edu
Date: Tue, 10 Aug 2004 17:08:31 -0400
From: Robert A Basch <rbasch@mit.edu>
Errors-To: bugs-bounces@mit.edu

On Linux, I noticed that in root X logins, two utmp entries are
created for each xterm terminal line, one of which is left as a stale
entry after logout.  An xterm process trace revealed that xterm
invokes utempter at startup to add the utmp record, yet also adds its
own record (i.e. with a different id).  At exit, utempter is invoked
to remove the entry it added, but the xterm-added entry is left in the
file.

This appears to be a bug which was fixed in xterm patch 188; see:

     http://dickey.his.com/xterm/xterm.log.html

(The rhel xterm is apparently based on patch 179).

Bob

home help back first fref pref prev next nref lref last post