Re: [patch] lib/login_tty.c: Controlling terminal in OpenBSD.

2010-09-16 Thread Bruno Haible
Hello Mats, Thank you for the report. > Without my changes the telnet session does not get a > controlling terminal It shouldn't need 'telnet' to detect this. The unit test should find out about it already. I'm adding the first patch below. With this unit test in place, indeed I get a test fail

Re: [patch] lib/login_tty.c: Controlling terminal in OpenBSD.

2010-09-16 Thread Eric Blake
On 09/16/2010 04:01 PM, Mats Erik Andersson wrote: Hello again, a new observation from my bug chasing. The assumptions made in "lib/login_tty.c", which are set on display as inherited from Solaris, these prerequisites are __NOT__ sufficient for OpenBSD. The reason is clearly displayed in tty(4)

[patch] lib/login_tty.c: Controlling terminal in OpenBSD.

2010-09-16 Thread Mats Erik Andersson
Hello again, a new observation from my bug chasing. The assumptions made in "lib/login_tty.c", which are set on display as inherited from Solaris, these prerequisites are __NOT__ sufficient for OpenBSD. The reason is clearly displayed in tty(4) of OpenBSD origin. Only after an ioctl call with TIO