From 2735cab02704bf42f3d379350155fb6f2e15d70e Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Thu, 9 Aug 2018 11:57:57 +0200 Subject: Build fix --- rb255772.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 rb255772.patch (limited to 'rb255772.patch') diff --git a/rb255772.patch b/rb255772.patch new file mode 100644 index 0000000..c67952b --- /dev/null +++ b/rb255772.patch @@ -0,0 +1,23 @@ +diff --git a/widget/xremoteclient/DBusRemoteClient.cpp b/widget/xremoteclient/DBusRemoteClient.cpp +--- a/widget/xremoteclient/DBusRemoteClient.cpp ++++ b/widget/xremoteclient/DBusRemoteClient.cpp +@@ -137,17 +137,17 @@ DBusRemoteClient::GetRemoteDestinationNa + profileName.get()); + if (aDestinationName.Length() > DBUS_MAXIMUM_NAME_LENGTH) + aDestinationName.Truncate(DBUS_MAXIMUM_NAME_LENGTH); + + static auto sDBusValidateBusName = + (bool (*)(const char *, DBusError *)) + dlsym(RTLD_DEFAULT, "dbus_validate_bus_name"); + if (!sDBusValidateBusName) { +- return false ++ return false; + } + + if (!sDBusValidateBusName(aDestinationName.get(), nullptr)) { + // We don't have a valid busName yet - try to create a default one. + aDestinationName = nsPrintfCString("org.mozilla.%s.%s", aProgram, + "default"); + if (!sDBusValidateBusName(aDestinationName.get(), nullptr)) { + // We failed completelly to get a valid bus name - just quit + -- cgit