- Add logind-warning.patch: fix pam warning (bnc#716384)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=206
This commit is contained in:
parent
86453e3373
commit
644a531d76
35
logind-warning.patch
Normal file
35
logind-warning.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 3887b5abcb3870db9ed53de3875a465c230ddd3f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lennart Poettering <lennart@poettering.net>
|
||||||
|
Date: Tue, 4 Oct 2011 01:38:13 +0200
|
||||||
|
Subject: [PATCH] logind: properly generate session creation response on dbus
|
||||||
|
|
||||||
|
This fixes the various reported issues with dbus message parsing when
|
||||||
|
running su.
|
||||||
|
---
|
||||||
|
src/logind-dbus.c | 4 ++++
|
||||||
|
1 files changed, 4 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/logind-dbus.c b/src/logind-dbus.c
|
||||||
|
index b33a096..bc1e49d 100644
|
||||||
|
--- a/src/logind-dbus.c
|
||||||
|
+++ b/src/logind-dbus.c
|
||||||
|
@@ -405,12 +405,16 @@ static int bus_manager_create_session(Manager *m, DBusMessage *message, DBusMess
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ seat = session->seat ? session->seat->id : "";
|
||||||
|
+ vtnr = session->vtnr;
|
||||||
|
b = dbus_message_append_args(
|
||||||
|
reply,
|
||||||
|
DBUS_TYPE_STRING, &session->id,
|
||||||
|
DBUS_TYPE_OBJECT_PATH, &p,
|
||||||
|
DBUS_TYPE_STRING, &session->user->runtime_path,
|
||||||
|
DBUS_TYPE_UNIX_FD, &fifo_fd,
|
||||||
|
+ DBUS_TYPE_STRING, &seat,
|
||||||
|
+ DBUS_TYPE_UINT32, &vtnr,
|
||||||
|
DBUS_TYPE_INVALID);
|
||||||
|
free(p);
|
||||||
|
|
||||||
|
--
|
||||||
|
1.7.3.4
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 5 16:18:48 UTC 2011 - fcrozat@suse.com
|
||||||
|
|
||||||
|
- Add logind-warning.patch: fix pam warning (bnc#716384)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 30 13:55:31 UTC 2011 - fcrozat@suse.com
|
Fri Sep 30 13:55:31 UTC 2011 - fcrozat@suse.com
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 5 16:18:48 UTC 2011 - fcrozat@suse.com
|
||||||
|
|
||||||
|
- Add logind-warning.patch: fix pam warning (bnc#716384)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 30 13:55:31 UTC 2011 - fcrozat@suse.com
|
Fri Sep 30 13:55:31 UTC 2011 - fcrozat@suse.com
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ Patch13: 0001-service-flags-sysv-service-with-detected-pid-as-Rema.patch
|
|||||||
# in the patch. Any patches added here without a very good reason to make
|
# in the patch. Any patches added here without a very good reason to make
|
||||||
# an exception will be silently removed with the next version update.
|
# an exception will be silently removed with the next version update.
|
||||||
Patch12: detect-non-running.patch
|
Patch12: detect-non-running.patch
|
||||||
|
Patch14: logind-warning.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Systemd is a system and service manager, compatible with SysV and LSB
|
Systemd is a system and service manager, compatible with SysV and LSB
|
||||||
@ -126,6 +127,7 @@ Plymouth integration for systemd
|
|||||||
%patch10 -p1
|
%patch10 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
%patch13 -p1
|
%patch13 -p1
|
||||||
|
%patch14 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
Loading…
Reference in New Issue
Block a user