Red Hat Bugzilla – Bug 55447
login does not set the controlling tty for the shell
Last modified: 2007-04-18 12:37:54 EDT
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):
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.
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.
*** This bug has been marked as a duplicate of 54960 ***
Both bugs 54960 and this one, 55447, are marked as closed/duplicate - is
there a fix or has it fallen through a crack?
There's a fix in rawhide (util-linux-2.11f-15).