From 116d0f39ea802301d464823ef2c76b3f2dba6c6b Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 20 Aug 2015 09:21:04 +0200 Subject: [PATCH] Create /run/systemd as needed * src/login/logind.c (main): Also create /run/systemd at startup. * configure.ac: Bump to 219.3. --- configure.ac | 2 +- src/login/logind.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 150773890..69d2d9bc0 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ AC_PREREQ([2.64]) # FIXME: Update to proper web page AC_INIT([elogind], - [219.1], + [219.3], [http://bugs.freedesktop.org/enter_bug.cgi?product=elogind], [elogind], [http://www.freedesktop.org/wiki/Software/elogind]) diff --git a/src/login/logind.c b/src/login/logind.c index 59ee2e6d4..9f1b5e3fd 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1152,6 +1152,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); -- 2.30.2