summaryrefslogtreecommitdiffstats
path: root/src/portable
diff options
context:
space:
mode:
authorgtwang01 <110636181+gtwang01@users.noreply.github.com>2022-08-09 09:19:09 +0200
committerGitHub <noreply@github.com>2022-08-09 09:19:09 +0200
commitb607fd3f32c3ef36795a5bce92ec7f31c48bc9d9 (patch)
treec7167e8510fbb4d8dd4954ffeee1aff19709c0a4 /src/portable
parentsysusers: properly process user entries with an explicit GID (diff)
downloadsystemd-b607fd3f32c3ef36795a5bce92ec7f31c48bc9d9.tar.xz
systemd-b607fd3f32c3ef36795a5bce92ec7f31c48bc9d9.zip
tree-wide: use bus locator (#24252)
This modifies some sd_bus calls to equivalent bus calls.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portablectl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c
index 0fc3a64d71..f46260307a 100644
--- a/src/portable/portablectl.c
+++ b/src/portable/portablectl.c
@@ -597,11 +597,9 @@ static int maybe_start_stop_restart(sd_bus *bus, const char *path, const char *m
if (!arg_now)
return 0;
- r = sd_bus_call_method(
+ r = bus_call_method(
bus,
- "org.freedesktop.systemd1",
- "/org/freedesktop/systemd1",
- "org.freedesktop.systemd1.Manager",
+ bus_systemd_mgr,
method,
&error,
&reply,