[Bug 536] no access to tty on Linux 2.0 and 2.4+libc5
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed May 7 21:05:57 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=536
------- Additional Comments From dtucker at zip.com.au 2003-05-07 21:05 -------
Created an attachment (id=283)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=283&action=view)
cttytest.c: Test for broken Linux/glibc/openpty controlling terminal behaviour
OK, the data points we've got are:
broken: 2.0.34 kernel, unknown libc
broken: 2.4.? kernel, libc5
broken: 2.0.38 kernel, glibc 2.0.7 (Debian Slink)
working: kernel 2.4.18, glibc 2.3.2 (Redhat 8)
So it looks like a libc thing. Searching the glibc ChangeLog:
1999-05-24 Ulrich Drepper <drepper at cygnus.com>
* login/openpty.c (openpty): Make sure pty does not because
controlling TTY.
So it looks like openpty is the culprit. I have attached a test program that
should detect this. You made need to link with -lutil.
On Debian Slink:
$ gcc cttytest.c -lutil
$ ./a.out
Test failed: reacquired controlling tty
And on Redhat 8:
$ ./a.out
Test passed.
I'll wrap it into a configure test and attach a patch.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-unix-dev
mailing list