mirror of
https://github.com/troglobit/finit.git
synced 2026-11-11 16:40:48 +00:00
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:
1 parent
8379b4927b
commit
cb802cd54e
1 file changed
+2
-2
+2
-2
@@ -421,9 +421,9 @@ int main(int argc, char *argv[])
|
|||||||
else if (whichp("udevadm"))
|
else if (whichp("udevadm"))
|
||||||
run_interactive("udevadm info --cleanup-db", "Cleaning up udev db");
|
run_interactive("udevadm info --cleanup-db", "Cleaning up udev db");
|
||||||
|
|
||||||
/* Some systems use /dev/pts */
|
/* Modern systems use /dev/pts */
|
||||||
makedir("/dev/pts", 0755);
|
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
|
* Some systems rely on us to both create /dev/shm and, to mount
|
||||||
|
|||||||
Reference in new issue
Block a user