mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
plugins: bootmisc: use relative symlink for /var/run
In an upside world, much like the Finit test cases, the root may be relocated. This make /var/run relative to /var, instead of /. Which hopefully is safer and covers more use-cases. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
13342f2bd9
commit
f0e328edc9
1 file changed
+1
-1
+1
-1
@@ -135,7 +135,7 @@ static void setup(void *arg)
|
|||||||
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", 1777);
|
||||||
makedir("/var/run", 0755);
|
makedir("/var/run", 0755);
|
||||||
|
|||||||
Reference in new issue
Block a user