summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-dump.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-30 16:08:11 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-30 16:08:11 +0100
commit3310dfd5bdba0e8218eca1eb6c1fa719adc45bb1 (patch)
tree29b5d1320713808f4063622da9245923b8c54519 /src/libsystemd-bus/bus-dump.c
parent49b832c5b810f4d8bb59249ff25472fd670503dc (diff)
bus: append unique and well known names to all messages unconditionally
Diffstat (limited to 'src/libsystemd-bus/bus-dump.c')
-rw-r--r--src/libsystemd-bus/bus-dump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-dump.c b/src/libsystemd-bus/bus-dump.c
index 849a3200df..469f7baaf5 100644
--- a/src/libsystemd-bus/bus-dump.c
+++ b/src/libsystemd-bus/bus-dump.c
@@ -395,9 +395,12 @@ int bus_creds_dump(sd_bus_creds *c, FILE *f) {
fputs(*i, f);
}
- fputs("}\n", f);
+ fputc('}', f);
}
+ if (c->mask & SD_BUS_CREDS_UNIQUE_NAME || well_known)
+ fputc('\n', f);
+
dump_capabilities(c, f, "EffectiveCapabilities", sd_bus_creds_has_effective_cap);
dump_capabilities(c, f, "PermittedCapabilities", sd_bus_creds_has_permitted_cap);
dump_capabilities(c, f, "InheritableCapabilities", sd_bus_creds_has_inheritable_cap);