From cb802cd54e8f1d4184163c2ec28a771279406994 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 15 Apr 2020 19:26:45 +0200 Subject: [PATCH] finit: devpts: Mount with recommended ptmxmode=0666 For details https://www.kernel.org/doc/Documentation/filesystems/devpts.txt Signed-off-by: Joachim Nilsson --- src/finit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finit.c b/src/finit.c index aa57d658..935994d1 100644 --- a/src/finit.c +++ b/src/finit.c @@ -421,9 +421,9 @@ int main(int argc, char *argv[]) else if (whichp("udevadm")) run_interactive("udevadm info --cleanup-db", "Cleaning up udev db"); - /* Some systems use /dev/pts */ + /* Modern systems use /dev/pts */ makedir("/dev/pts", 0755); - mount("devpts", "/dev/pts", "devpts", 0, "gid=5,mode=620"); + mount("devpts", "/dev/pts", "devpts", 0, "gid=5,mode=620,ptmxmode=0666"); /* * Some systems rely on us to both create /dev/shm and, to mount