diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-10-04 01:38:13 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-10-04 02:28:22 +0200 |
commit | 3887b5abcb3870db9ed53de3875a465c230ddd3f (patch) | |
tree | 277f3987f8de9e0265c52ded8c64ffe0f7545d18 | |
parent | 798e258d301ac237cb1d72b5fc4b19ee900d6f7d (diff) |
logind: properly generate session creation response on dbus
This fixes the various reported issues with dbus message parsing when
running su.
-rw-r--r-- | 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 b33a096f3c..bc1e49d18f 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); |