From: Andy Wingo Date: Thu, 20 Aug 2015 07:21:04 +0000 (+0200) Subject: Create /run/systemd as needed X-Git-Tag: v226.4~1^2~166 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=338ea72012c43c5fc7fb0dfda10dc1c462d3111e Create /run/systemd as needed * src/login/logind.c (main): Also create /run/systemd at startup. * configure.ac: Bump to 219.3. --- diff --git a/src/login/logind.c b/src/login/logind.c index a83d9443d..f84938a7f 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1153,6 +1153,7 @@ int main(int argc, char *argv[]) { * existence of /run/systemd/seats/ to determine whether * logind is available, so please always make sure this check * stays in. */ + mkdir_label("/run/systemd", 0755); mkdir_label("/run/systemd/seats", 0755); mkdir_label("/run/systemd/users", 0755); mkdir_label("/run/systemd/sessions", 0755);