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:
Joachim Wiberg
2022-04-06 21:13:43 +02:00
parent 13342f2bd9
commit f0e328edc9
+1 -1
View File
@@ -135,7 +135,7 @@ static void setup(void *arg)
ln("/dev/shm", "/run/shm");
/* compat only, should really be set up by OS/dist */
ln("/run", "/var/run");
ln("../run", "/var/run");
} else {
makedir("/var/lock", 1777);
makedir("/var/run", 0755);