chiark / gitweb /
Fix format string mismatch introduced in ab9001a1
[elogind.git] / src / libsystemd-bus / sd-bus.c
index c2f77a990fef0ae9f507a5b9ad71db8ed5dc8ca5..7f3ecbf8047eb3d815b8646ae7ccb66e608aee5b 100644 (file)
@@ -1101,7 +1101,7 @@ _public_ int sd_bus_open_user(sd_bus **ret) {
 #ifdef ENABLE_KDBUS
                         asprintf(&b->address, KERNEL_USER_BUS_FMT ";" UNIX_USER_BUS_FMT, (unsigned long) getuid(), ee);
 #else
-                        asprintf(&b->address, UNIX_USER_BUS_FMT, (unsigned long) getuid());
+                        asprintf(&b->address, UNIX_USER_BUS_FMT, ee);
 #endif
                 } else {
 #ifdef ENABLE_KDBUS