summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-08-20 09:21:04 +0200
committerAndy Wingo <wingo@pobox.com>2015-08-20 09:21:04 +0200
commit116d0f39ea802301d464823ef2c76b3f2dba6c6b (patch)
treedda490bd2a07ad384b83c0111f98b596c80fcc50 /src
parent4ef8c8a39392c25ae3fc5ac59583fb3361cf5663 (diff)
Create /run/systemd as neededelogind/v219.3
* src/login/logind.c (main): Also create /run/systemd at startup. * configure.ac: Bump to 219.3.
Diffstat (limited to 'src')
-rw-r--r--src/login/logind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index 59ee2e6d44..9f1b5e3fde 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);