From: Andy Wingo Date: Thu, 20 Aug 2015 07:21:04 +0000 (+0200) Subject: Create /run/systemd as needed X-Git-Tag: v219.3^0 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=116d0f39ea802301d464823ef2c76b3f2dba6c6b;p=elogind.git 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/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);