summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-introspect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-21 18:08:39 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-21 18:08:39 +0100
commit7fb411f035e68b5f3f5e2893157739c9da9917b0 (patch)
treefc342dcdf2623ec3421ea253bd5ce0a8b571f7a4 /src/libsystemd-bus/test-bus-introspect.c
parentb2bb3469fd01cec57f1f1726edb5b851ff8427ad (diff)
bus: when introspecting, turn unprivileged flag into inverse annoation of "privileged"
Internally, it makes sense to have a default of "privileged" for methods, and a flag to open it up. However, externally in the bus introspection turn this around since negative options actually suck.
Diffstat (limited to 'src/libsystemd-bus/test-bus-introspect.c')
-rw-r--r--src/libsystemd-bus/test-bus-introspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/test-bus-introspect.c b/src/libsystemd-bus/test-bus-introspect.c
index 50c4c2d871..574479dd6c 100644
--- a/src/libsystemd-bus/test-bus-introspect.c
+++ b/src/libsystemd-bus/test-bus-introspect.c
@@ -50,7 +50,7 @@ int main(int argc, char *argv[]) {
log_set_max_level(LOG_DEBUG);
- assert_se(introspect_begin(&intro) >= 0);
+ assert_se(introspect_begin(&intro, false) >= 0);
fprintf(intro.f, " <interface name=\"org.foo\">\n");
assert_se(introspect_write_interface(&intro, vtable) >= 0);