summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/elogind/files/elogind-219.12-runtime.patch')
-rw-r--r--sys-auth/elogind/files/elogind-219.12-runtime.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/sys-auth/elogind/files/elogind-219.12-runtime.patch b/sys-auth/elogind/files/elogind-219.12-runtime.patch
deleted file mode 100644
index f14806c3164d..000000000000
--- a/sys-auth/elogind/files/elogind-219.12-runtime.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 276746896985c438d317fcae414e9c83a6dd3d76 Mon Sep 17 00:00:00 2001
-From: Sven Eden <yamakuzure@gmx.net>
-Date: Fri, 20 Jan 2017 17:14:35 +0100
-Subject: [PATCH] Create /run/systemd as needed
-
-* src/login/logind.c (main): Also create /run/systemd at startup.
-* Create /run/systemd/machines, so that the login monitor works.
-* Fail if any of the needed directories could not be created.
-* But do not fail if any of the needed directories exist.
----
- src/login/logind.c | 18 +++++++++++++++---
- 1 file changed, 15 insertions(+), 3 deletions(-)
-
-diff --git a/src/login/logind.c b/src/login/logind.c
-index 1ab50ec..07a77b1 100644
---- a/src/login/logind.c
-+++ b/src/login/logind.c
-@@ -1131,10 +1131,21 @@ 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/seats", 0755);
-- mkdir_label("/run/systemd/users", 0755);
-- mkdir_label("/run/systemd/sessions", 0755);
-- mkdir_label("/run/systemd/machines", 0755);
-+ r = mkdir_label("/run/systemd", 0755);
-+ if ( (r < 0) && (-EEXIST != r) )
-+ return log_error_errno(r, "Failed to create /run/systemd : %m");
-+ r = mkdir_label("/run/systemd/seats", 0755);
-+ if ( r < 0 && (-EEXIST != r) )
-+ return log_error_errno(r, "Failed to create /run/systemd/seats : %m");
-+ r = mkdir_label("/run/systemd/users", 0755);
-+ if ( r < 0 && (-EEXIST != r) )
-+ return log_error_errno(r, "Failed to create /run/systemd/users : %m");
-+ r = mkdir_label("/run/systemd/sessions", 0755);
-+ if ( r < 0 && (-EEXIST != r) )
-+ return log_error_errno(r, "Failed to create /run/systemd/sessions : %m");
-+ r = mkdir_label("/run/systemd/machines", 0755);
-+ if ( r < 0 && (-EEXIST != r) )
-+ return log_error_errno(r, "Failed to create /run/systemd/machines : %m");
-
- m = manager_new();
- if (!m) {