Re: port-sun3/57741: sshd fails to open a PTY on NetBSD/sun3
Jason Thorpe <[email protected]> Fri, 1 Dec 2023 14:35:07 -0800
| Newsgroups | gmane.os.netbsd.bugs,gmane.os.netbsd.ports.sun3 |
|---|---|
| Message-ID | <[email protected]> |
> On Dec 1, 2023, at 12:49 PM, Jason Thorpe <[email protected]> wrote: >=20 >>=20 >>> Category: port-sun3 >>> Responsible: port-sun3-maintainer >>> Synopsis: sshd fails to open a PTY on NetBSD/sun3 >>> Arrival-Date: Fri Dec 01 20:45:00 +0000 2023 >>=20 >=20 > Right, so the problem is that the install script that sun3 uses = doesn=E2=80=99t add an fstab entry for ptyfs, which is required in order = for openpty() to work. Ok, well, more like: - openpty() will still use legacy pty devices, if they exist, but will = prefer /dev/ptm. - posix_openpt() only works with /dev/ptm. - The new MAKEDEV that's installed by the install script does not make = legacy pty devices for "MAKEDEV all". Seems like the best course of action is to have the install script put a = ptyfs entry in the generated /etc/fstab. -- thorpej