finit: devpts: Mount with recommended ptmxmode=0666

For details https://www.kernel.org/doc/Documentation/filesystems/devpts.txt

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-04-15 19:28:13 +02:00
1 parent 8379b4927b
commit cb802cd54e
1 file changed
+2 -2
+2 -2
View File
@@ -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