Red Hat Bugzilla – Bug 159358
[PATCH] xterm creates two utmp entries on entry and only removes one on exit
Last modified: 2007-11-30 17:07:07 EST
Description of problem:
xterm has code to create utmp entries using utempter and manually. The code to
clean up the utmp entries on logout/exit is conditionalized on whether or not
it's configured to use utempter. The code to manually create utmp entries is not
correspondingly conditionalized and so whenever xterm exits it leaves behind a
stale/dummy utmp entry.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run who -u
2. open an xterm
3. run who -u (you'll see two new entries for the xterm)
4. close the xterm any way you like
5. run who -u
Only one of the xterm entries will be gone (the one created by utempter).
Only one utmp entry created in the first place; if there are multiple entries
created I'd expect them to all be removed on exit.
Created attachment 115065 [details]
Don't manually create utmp/wtmp entries if using utempter
This was part of the changes for xterm patch #188.
This bug is now fixed with xterm-179-6.EL3 (patch applied) .
A fix to this issue seems to be available and it is not unlikely that this
component will be included in a future Update release.
Moving to the next Update, clearing all ACKs.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.