summaryrefslogtreecommitdiffstats
path: root/src/portable/portabled-bus.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-03-03 16:26:36 +0100
committerLuca Boccassi <bluca@debian.org>2022-03-07 15:49:54 +0100
commit087a799f64560bb0379b8a99ebbd9ca84804e4c3 (patch)
treec5f1b154f7d9214b7a9947806619f1c87248c9cf /src/portable/portabled-bus.c
parentdocs: add more links for portabled (diff)
downloadsystemd-087a799f64560bb0379b8a99ebbd9ca84804e4c3.tar.xz
systemd-087a799f64560bb0379b8a99ebbd9ca84804e4c3.zip
portable: add return parameter to GetImageMetadataWithExtensions
The complaint was that the output array was used for two kinds of data, and the input flag decided whether this extra data should be included. The flag is removed, and instead the old method is changed to include the data always as a separate parameter. This breaks backward compatibility, but the old method is effectively broken and does not appear to be used yet, at least in open source code, by searching on codesearch.debian.net and github.com. Fixes #22404. Co-authored-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'src/portable/portabled-bus.c')
-rw-r--r--src/portable/portabled-bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/portabled-bus.c b/src/portable/portabled-bus.c
index 214fdb5b30..8f8a8fbdcf 100644
--- a/src/portable/portabled-bus.c
+++ b/src/portable/portabled-bus.c
@@ -441,6 +441,7 @@ const sd_bus_vtable manager_vtable[] = {
"t", flags),
SD_BUS_RESULT("s", image,
"ay", os_release,
+ "a{say}", extensions,
"a{say}", units),
method_get_image_metadata,
SD_BUS_VTABLE_UNPRIVILEGED),