plugins: fix octal permission on /run/lock and /var/lock

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-28 00:48:25 +01:00
1 parent ab5a983bf7
commit a90cfd4a75
1 file changed
+2 -2
+2 -2
View File
@@ -175,14 +175,14 @@ static void setup(void *arg)
if (fisdir("/run")) { if (fisdir("/run")) {
dbg("System with new /run tmpfs ..."); dbg("System with new /run tmpfs ...");
if (!fisdir("/run/lock")) if (!fisdir("/run/lock"))
makedir("/run/lock", 1777); makedir("/run/lock", 01777);
ln("/run/lock", "/var/lock"); ln("/run/lock", "/var/lock");
ln("/dev/shm", "/run/shm"); ln("/dev/shm", "/run/shm");
/* compat only, should really be set up by OS/dist */ /* compat only, should really be set up by OS/dist */
ln("/run", "/var/run"); ln("/run", "/var/run");
} else { } else {
makedir("/var/lock", 1777); makedir("/var/lock", 01777);
makedir("/var/run", 0755); makedir("/var/run", 0755);
} }
makedir("/var/log", 0755); makedir("/var/log", 0755);