chiark / gitweb /
bus: when we are connected to a bus, then do not assume peer creds are useful as...
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Dec 2013 17:56:37 +0000 (18:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 23 Dec 2013 17:56:37 +0000 (18:56 +0100)
src/libsystemd-bus/bus-socket.c

index 1f5d980..66924b2 100644 (file)
@@ -923,8 +923,8 @@ static int bus_socket_make_message(sd_bus *bus, size_t size) {
         r = bus_message_from_malloc(bus,
                                     bus->rbuffer, size,
                                     bus->fds, bus->n_fds,
-                                    bus->ucred_valid ? &bus->ucred : NULL,
-                                    bus->label[0] ? bus->label : NULL,
+                                    !bus->bus_client && bus->ucred_valid ? &bus->ucred : NULL,
+                                    !bus->bus_client && bus->label[0] ? bus->label : NULL,
                                     &t);
         if (r < 0) {
                 free(b);