Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
PackageKit
PackageKit-fix-crash-pre-dbus.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PackageKit-fix-crash-pre-dbus.patch of Package PackageKit
From 30b22c0f06970c934b3e6f6ea0328c589548850c Mon Sep 17 00:00:00 2001 From: Richard Hughes <richard@hughsie.com> Date: Thu, 29 Oct 2020 15:40:00 +0000 Subject: [PATCH] Do not crash when calling pk_dbus_get_uid() before D-Bus is setup Fixes https://github.com/hughsie/PackageKit/issues/436 --- src/pk-dbus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pk-dbus.c b/src/pk-dbus.c index ddd04d4e6..af275eb2a 100644 --- a/src/pk-dbus.c +++ b/src/pk-dbus.c @@ -64,6 +64,10 @@ pk_dbus_get_uid (PkDbus *dbus, const gchar *sender) g_return_val_if_fail (PK_IS_DBUS (dbus), G_MAXUINT); g_return_val_if_fail (sender != NULL, G_MAXUINT); + /* no connection to DBus */ + if (dbus->priv->proxy_uid == NULL) + return G_MAXUINT; + /* set in the test suite */ if (g_strcmp0 (sender, ":org.freedesktop.PackageKit") == 0) { g_debug ("using self-check shortcut");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor