58b215
From 0841bbf69ed2b7d623c09a8e35ddf563a2acfb18 Mon Sep 17 00:00:00 2001
58b215
From: Matteo Croce <teknoraver@meta.com>
58b215
Date: Fri, 18 Oct 2024 18:44:13 +0200
58b215
Subject: [PATCH] keep on using DBus as fallback if varlink is not available
58b215
58b215
---
58b215
 src/network/networkctl.c | 2 +-
58b215
 1 file changed, 1 insertion(+), 1 deletion(-)
58b215
58b215
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
58b215
index a447c39..f3d7f24 100644
58b215
--- a/src/network/networkctl.c
58b215
+++ b/src/network/networkctl.c
58b215
@@ -173,7 +173,7 @@ int acquire_bus(sd_bus **ret) {
58b215
         if (networkd_is_running()) {
58b215
                 r = varlink_connect_networkd(/* ret_varlink = */ NULL);
58b215
                 if (r < 0)
58b215
-                        return r;
58b215
+                        log_warning("Varlink connection failed, fallback to D-Bus.");
58b215
         } else
58b215
                 log_warning("systemd-networkd is not running, output might be incomplete.");
58b215
 
58b215
-- 
58b215
2.47.0
58b215