Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
PolicyKit-doc
PolicyKit-0.9-unset-dbus-error-if-Authenticatio...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PolicyKit-0.9-unset-dbus-error-if-AuthenticationAgent-is-not-availa.diff of Package PolicyKit-doc
From 090bd0b62e2f280b508f4951af5e6321dddb5807 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Tue, 4 Nov 2008 09:22:16 +0100 Subject: [PATCH] unset dbus error if AuthenticationAgent is not available if the error is set _auth_show_dialog_text may abort() Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de> --- src/polkit-dbus/polkit-simple.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/polkit-dbus/polkit-simple.c b/src/polkit-dbus/polkit-simple.c index 8365b93..953d167 100644 --- a/src/polkit-dbus/polkit-simple.c +++ b/src/polkit-dbus/polkit-simple.c @@ -375,6 +375,7 @@ polkit_auth_obtain (const char *action_id, polkit_uint32_t xid, pid_t pid, DBusE DBUS_TYPE_INVALID); reply = dbus_connection_send_with_reply_and_block (bus, message, INT_MAX, error); if (reply == NULL || dbus_error_is_set (error)) { + dbus_error_init (error); ret = _auth_show_dialog_text (action_id, pid, error); goto out; } -- 1.5.6
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