Bug 55447

Summary: login does not set the controlling tty for the shell
Product: [Retired] Red Hat Linux Reporter: Need Real Name <michael>
Component: util-linuxAssignee: Elliot Lee <sopwith>
Status: CLOSED DUPLICATE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-31 13:43:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-10-31 13:43:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012

Description of problem:
Shells started by login do not have a controlling tty
(ie, open of /dev/tty fails in the shell).
Problem introduced in  util-linux-2.11f-11.7.1 (not
present in util-linux-2.10s-13.7).

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.install pdksh (or ash) rpm
2.set your shell to ksh (or ash)
3.log in on one of the virtual consoles
4. cat /dev/tty
	

Actual Results:  cat failed saying no such device or address

Expected Results:  cat should have been able to open the device.

Additional info:

Guess at the cause: One of the patches in the latest util-linux package
(util-linux-2.11f-logingrp-revert.patch) removes code
which drops the previous controlling tty just before opening
the new tty, with the result that the open does not cause the
new tty to become the controlling tty.

Comment 1 Elliot Lee 2001-10-31 15:06:48 UTC

*** This bug has been marked as a duplicate of 54960 ***

Comment 2 Need Real Name 2001-10-31 23:32:05 UTC
Both bugs 54960 and this one, 55447, are marked as closed/duplicate - is
there a fix or has it fallen through a crack?

Comment 3 Elliot Lee 2001-10-31 23:37:01 UTC
There's a fix in rawhide (util-linux-2.11f-15).