Bug 159358 - [PATCH] xterm creates two utmp entries on entry and only removes one on exit
[PATCH] xterm creates two utmp entries on entry and only removes one on exit
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: xterm (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
RHEL3U7NAK
:
Depends On:
Blocks: 187539
  Show dependency treegraph
 
Reported: 2005-06-01 17:28 EDT by David Lehman
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2006-0422
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-05-10 17:30:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Don't manually create utmp/wtmp entries if using utempter (594 bytes, patch)
2005-06-01 17:28 EDT, David Lehman
no flags Details | Diff

  None (edit)
Description David Lehman 2005-06-01 17:28:07 EDT
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):
xterm-179-5.EL

How reproducible:
Always

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 

Actual results:
Only one of the xterm entries will be gone (the one created by utempter).

Expected results:
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.

Additional info:
Comment 1 David Lehman 2005-06-01 17:28:07 EDT
Created attachment 115065 [details]
Don't manually create utmp/wtmp entries if using utempter
Comment 2 Thomas E. Dickey 2005-08-07 17:56:13 EDT
This was part of the changes for xterm patch #188.
Comment 6 Jason Vas Dias 2005-11-29 15:15:53 EST
This bug is now fixed with xterm-179-6.EL3 (patch applied) .
Comment 8 Daniel Riek 2006-03-24 10:59:50 EST
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.
Comment 14 Red Hat Bugzilla 2006-05-10 17:30:19 EDT
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.

http://rhn.redhat.com/errata/RHBA-2006-0422.html

Note You need to log in before you can comment on or make changes to this bug.