pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when configuring pkgsrc/x11/mlterm
The following reply was made to PR pkg/56936; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when
configuring pkgsrc/x11/mlterm
Date: Sat, 10 Sep 2022 04:01:04 +0000
On Wed, Sep 07, 2022 at 11:00:03PM +0000, Joerg Sonnenberger wrote:
> > Inside a sandbox, openpty(3) also doesn't work, as I'd noticed since
> > script(1) fails to work in that context.
> >
> > script: openpty: No such file or directory
> >
> > 22686 1 script CALL open(0x6fd6ee21228c,2,0)
> > 22686 1 script NAMI "/dev/ptm"
> > 22686 1 script RET open 4
> > 22686 1 script CALL ioctl(4,TIOCPTMGET,0x7f7fffd49b00)
> > 22686 1 script RET ioctl -1 errno 45 Operation not supported
>
> That means your sandbox is not configured correctly. Do you have
> /dev/pts null-mounted in the chroot?
Openpty falls back to opening pty devices, so it should work
regardless of whether /dev/pts is present. Unless you have no ptys at
all in the sandbox, and that does seem like a configuration error.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index