From 21eb780b02146ccb6c745338accbaab1b4e8adca63d674698173f35e85e23e11 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 10 Feb 2014 15:24:59 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=513 --- ...orrect-who-enum-values-with-KillUnit.patch | 31 +++++++++++++++++++ systemd-mini.changes | 11 +++++++ systemd-mini.spec | 3 ++ systemd.changes | 6 ++++ systemd.spec | 3 ++ 5 files changed, 54 insertions(+) create mode 100644 0145-logind-use-correct-who-enum-values-with-KillUnit.patch diff --git a/0145-logind-use-correct-who-enum-values-with-KillUnit.patch b/0145-logind-use-correct-who-enum-values-with-KillUnit.patch new file mode 100644 index 00000000..f8fff2d2 --- /dev/null +++ b/0145-logind-use-correct-who-enum-values-with-KillUnit.patch @@ -0,0 +1,31 @@ +From 524147c1ef991edf4432aac51c880b363b4402df Mon Sep 17 00:00:00 2001 +From: Marius Vollmer +Date: Thu, 31 Oct 2013 15:55:07 +0200 +Subject: [PATCH] logind: use correct "who" enum values with KillUnit. + +--- + src/login/logind-dbus.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c +index bb85c7d..583d62e 100644 +--- a/src/login/logind-dbus.c ++++ b/src/login/logind-dbus.c +@@ -2799,7 +2799,7 @@ int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo + assert(manager); + assert(unit); + +- w = who == KILL_LEADER ? "process" : "cgroup"; ++ w = who == KILL_LEADER ? "control" : "all"; + assert_cc(sizeof(signo) == sizeof(int32_t)); + + r = bus_method_call_with_reply( +@@ -2815,7 +2815,7 @@ int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo + DBUS_TYPE_INT32, &signo, + DBUS_TYPE_INVALID); + if (r < 0) { +- log_error("Failed to stop unit %s: %s", unit, bus_error(error, r)); ++ log_error("Failed to kill unit %s: %s", unit, bus_error(error, r)); + return r; + } + diff --git a/systemd-mini.changes b/systemd-mini.changes index 71dd4ef8..b743cd69 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Feb 10 15:15:35 UTC 2014 - werner@suse.de + +- Add patch 0145-logind-use-correct-who-enum-values-with-KillUnit.patch + to be able to kill sessions (bnc#860574) + +------------------------------------------------------------------- +Mon Feb 10 11:19:31 UTC 2014 - werner@suse.de + +- Do not return from main shell script but simply exit (bnc#862789) + ------------------------------------------------------------------- Sun Feb 9 18:43:38 UTC 2014 - werner@suse.de diff --git a/systemd-mini.spec b/systemd-mini.spec index 8e1b7018..a77729c4 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -271,6 +271,8 @@ Patch89: 0003-core-make-sure-to-always-go-through-both-SIGTERM-and.patch Patch90: 0001-On_s390_con3270_disable_ANSI_colour_esc.patch # PATCH-FIX-SUSE plymouth-quit-and-wait-for-emergency-service.patch -- Make sure that no plymouthd is locking the tty Patch91: plymouth-quit-and-wait-for-emergency-service.patch +# PATCH-FIX-SUSE 0145-logind-use-correct-who-enum-values-with-KillUnit.patch -- Be able to kill sessions (bnc#860574) +Patch92: 0145-logind-use-correct-who-enum-values-with-KillUnit.patch # udev patches # PATCH-FIX-OPENSUSE 1001-re-enable-by_path-links-for-ata-devices.patch @@ -593,6 +595,7 @@ cp %{SOURCE7} m4/ %patch89 -p1 %patch90 -p1 %patch91 -p1 +%patch92 -p1 # udev patches %patch1001 -p1 diff --git a/systemd.changes b/systemd.changes index 624d842d..b743cd69 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 10 15:15:35 UTC 2014 - werner@suse.de + +- Add patch 0145-logind-use-correct-who-enum-values-with-KillUnit.patch + to be able to kill sessions (bnc#860574) + ------------------------------------------------------------------- Mon Feb 10 11:19:31 UTC 2014 - werner@suse.de diff --git a/systemd.spec b/systemd.spec index eff98543..89d5f31d 100644 --- a/systemd.spec +++ b/systemd.spec @@ -266,6 +266,8 @@ Patch89: 0003-core-make-sure-to-always-go-through-both-SIGTERM-and.patch Patch90: 0001-On_s390_con3270_disable_ANSI_colour_esc.patch # PATCH-FIX-SUSE plymouth-quit-and-wait-for-emergency-service.patch -- Make sure that no plymouthd is locking the tty Patch91: plymouth-quit-and-wait-for-emergency-service.patch +# PATCH-FIX-SUSE 0145-logind-use-correct-who-enum-values-with-KillUnit.patch -- Be able to kill sessions (bnc#860574) +Patch92: 0145-logind-use-correct-who-enum-values-with-KillUnit.patch # udev patches # PATCH-FIX-OPENSUSE 1001-re-enable-by_path-links-for-ata-devices.patch @@ -588,6 +590,7 @@ cp %{SOURCE7} m4/ %patch89 -p1 %patch90 -p1 %patch91 -p1 +%patch92 -p1 # udev patches %patch1001 -p1