]> git.ipfire.org Git - thirdparty/glibc.git/commit
Linux: Require properly configured /dev/pts for PTYs
authorFlorian Weimer <fweimer@redhat.com>
Wed, 7 Oct 2020 12:55:04 +0000 (14:55 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 7 Oct 2020 12:55:50 +0000 (14:55 +0200)
commit27fe5f2e67a0e4cc0526b1b32b55f8e519075edb
treeef5c44eece0ca4d809f072533d4a30d71d5aa09a
parent0f9793a556675d67d7c1897553f92e7152d1e598
Linux: Require properly configured /dev/pts for PTYs

Current systems do not have BSD terminals, so the fallback code in
posix_openpt/getpt does not do anything.  Also remove the file system
check for /dev/pts.  Current systems always have a devpts file system
mounted there if /dev/ptmx exists.

grantpt is now essentially a no-op.  It only verifies that the
argument is a ptmx-descriptor.  Therefore, this change indirectly
addresses bug 24941.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
INSTALL
NEWS
manual/install.texi
sysdeps/unix/sysv/linux/getpt.c
sysdeps/unix/sysv/linux/grantpt.c
sysdeps/unix/sysv/linux/ptsname.c