sys-apps/systemd: backport patch for dbus error in logind
authorMike Gilbert <floppym@gentoo.org>
Fri, 8 Sep 2017 21:15:49 +0000 (17:15 -0400)
committerMike Gilbert <floppym@gentoo.org>
Fri, 8 Sep 2017 21:16:01 +0000 (17:16 -0400)
Closes: https://bugs.gentoo.org/630424
Package-Manager: Portage-2.3.6_p60, Repoman-2.3.3_p38

sys-apps/systemd/files/234-0004-logind-make-sure-we-don-t-process-the-same-method-ca.patch [new file with mode: 0644]
sys-apps/systemd/systemd-234-r4.ebuild [moved from sys-apps/systemd/systemd-234-r3.ebuild with 99% similarity]

diff --git a/sys-apps/systemd/files/234-0004-logind-make-sure-we-don-t-process-the-same-method-ca.patch b/sys-apps/systemd/files/234-0004-logind-make-sure-we-don-t-process-the-same-method-ca.patch
new file mode 100644 (file)
index 0000000..97230f9
--- /dev/null
@@ -0,0 +1,29 @@
+From f7d27d130eaac222b2d11c4d4415c9b599934da8 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Sat, 26 Aug 2017 15:19:26 +0200
+Subject: [PATCH] logind: make sure we don't process the same method call twice
+ (#6583)
+
+Tiny mistake, big effect.
+
+Fixes: #6375
+---
+ src/login/logind-session-dbus.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
+index 22e5349a6..649f3c155 100644
+--- a/src/login/logind-session-dbus.c
++++ b/src/login/logind-session-dbus.c
+@@ -457,7 +457,7 @@ static int method_take_device(sd_bus_message *message, void *userdata, sd_bus_er
+                 goto error;
+ 
+         session_save(s);
+-        return 0;
++        return 1;
+ 
+ error:
+         session_device_free(sd);
+-- 
+2.14.1
+
similarity index 99%
rename from sys-apps/systemd/systemd-234-r3.ebuild
rename to sys-apps/systemd/systemd-234-r4.ebuild
index 15bf64cd7327a30ade49684f0af064e5c694e23e..2582732b6cc925736a5373eb9e55abd58da73861 100644 (file)
@@ -151,6 +151,7 @@ src_prepare() {
                "${FILESDIR}"/234-0001-path-lookup-look-for-generators-in-usr-lib-systemd-s.patch
                "${FILESDIR}"/234-0002-cryptsetup-fix-infinite-timeout-6486.patch
                "${FILESDIR}"/234-0003-resolved-make-sure-idn2-conversions-are-roundtrippab.patch
+               "${FILESDIR}"/234-0004-logind-make-sure-we-don-t-process-the-same-method-ca.patch
        )
 
        if ! use vanilla; then