From a90cfd4a751fb07018472ef9f61ae79e4469bc47 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 16 Feb 2023 08:08:46 +0100 Subject: [PATCH] plugins: fix octal permission on /run/lock and /var/lock Signed-off-by: Joachim Wiberg --- plugins/bootmisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/bootmisc.c b/plugins/bootmisc.c index 88364e00..0a519f4e 100644 --- a/plugins/bootmisc.c +++ b/plugins/bootmisc.c @@ -175,14 +175,14 @@ static void setup(void *arg) if (fisdir("/run")) { dbg("System with new /run tmpfs ..."); if (!fisdir("/run/lock")) - makedir("/run/lock", 1777); + makedir("/run/lock", 01777); ln("/run/lock", "/var/lock"); ln("/dev/shm", "/run/shm"); /* compat only, should really be set up by OS/dist */ ln("/run", "/var/run"); } else { - makedir("/var/lock", 1777); + makedir("/var/lock", 01777); makedir("/var/run", 0755); } makedir("/var/log", 0755);