summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-04 10:41:47 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-04 11:00:54 +0100
commit10a7340a97f383e72a0a58e06bfbd673f347f095 (patch)
treee3a0363d0318d12ef727935a3fcc5b6023d9f53f /src/portable
parentfb293b3c0f2f0e24d088a6ccaf3bd051301754af (diff)
downloadsystemd-10a7340a97f383e72a0a58e06bfbd673f347f095.tar.gz
tree-wide: do not print hint about -M if -M is already used
(Or when -H is used, since -H and -M are incompatible.) Note that the slightly unusual form with separate boolean variables (hint_vars, hint_addr) instead of e.g. a const char* variable to hold the message, because this way we don't trigger the warning about non-literal format.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portablectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c
index ec625161a4..e601ee5d8f 100644
--- a/src/portable/portablectl.c
+++ b/src/portable/portablectl.c
@@ -220,7 +220,7 @@ static int acquire_bus(sd_bus **bus) {
r = bus_connect_transport(arg_transport, arg_host, false, bus);
if (r < 0)
- return bus_log_connect_error(r);
+ return bus_log_connect_error(r, arg_transport);
(void) sd_bus_set_allow_interactive_authorization(*bus, arg_ask_password);