chiark / gitweb /
logind: fix serialization of ListSeats() bus call
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Nov 2013 00:20:52 +0000 (01:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Nov 2013 00:20:52 +0000 (01:20 +0100)
src/login/logind-dbus.c

index 6471678..9fe41d8 100644 (file)
@@ -371,7 +371,7 @@ static int method_list_seats(sd_bus *bus, sd_bus_message *message, void *userdat
                 if (!p)
                         return sd_bus_reply_method_errno(bus, message, -ENOMEM, NULL);
 
-                r = sd_bus_message_append(reply, "so", seat->id, p);
+                r = sd_bus_message_append(reply, "(so)", seat->id, p);
                 if (r < 0)
                         return sd_bus_reply_method_errno(bus, message, r, NULL);
         }