Bug 55447 - login does not set the controlling tty for the shell
Summary: login does not set the controlling tty for the shell
Status: CLOSED DUPLICATE of bug 54960
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: util-linux   
(Show other bugs)
Version: 7.1
Hardware: i686 Linux
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2001-10-31 13:43 UTC by Need Real Name
Modified: 2007-04-18 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-10-31 13:43:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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:

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).

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