mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
plugins: fix octal permission on /run/lock and /var/lock
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
ab5a983bf7
commit
a90cfd4a75
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user