From add6f1c23647ffeaffe2beefa8af0c3f90b45f14 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 10 May 2019 14:53:51 +0200 Subject: [PATCH] settings/d-bus: fix boolean return value of "LoadConnections" The boolean value is intended to indicate success. It would indicated failure due to a bug. Fixes: 297d4985abcc ('core/dbus: rework D-Bus implementation to use lower layer GDBusConnection API'): (cherry picked from commit 22e830f0469a654159e71b5bbddb2774bb5342c2) (cherry picked from commit e73a505866a784b41393ae6082a26ff7389633d3) (cherry picked from commit 1337ebd9d0451cc2d48d48048cc19a84ac2d8cb9) (cherry picked from commit 703864e2b3fb02f9e995f74a4015e9b4fc7c0180) --- src/settings/nm-settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index aae5727e0a..2b10ae9ae6 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -1481,7 +1481,7 @@ next_filename: g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b^as)", - (gboolean) (!!failures), + (gboolean) (!failures), failures ? (const char **) failures->pdata : NM_PTRARRAY_EMPTY (const char *)));