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-caller-has-no...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PolicyKit-0.9-unset-dbus-error-if-caller-has-no-ConsoleKit-session.diff of Package PolicyKit-doc
From 9292e890e495c2beeaaddbafde88349a2cf08572 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Fri, 31 Oct 2008 11:31:33 +0100 Subject: [PATCH] unset dbus error if caller has no ConsoleKit session A non existing ConsoleKit session is no fatal error and a caller is constructed nevertheless. Therefore don't leave the error set to prevent applications from thinking something went wrong. Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de> --- src/polkit-dbus/polkit-dbus.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/polkit-dbus/polkit-dbus.c b/src/polkit-dbus/polkit-dbus.c index f7be03f..509415e 100644 --- a/src/polkit-dbus/polkit-dbus.c +++ b/src/polkit-dbus/polkit-dbus.c @@ -479,6 +479,7 @@ polkit_caller_new_from_dbus_name (DBusConnection *con, const char *dbus_name, DB /* OK, this is not a catastrophe; just means the caller is not a * member of any session or that ConsoleKit is not available.. */ + dbus_error_free (error); goto not_in_session; } dbus_message_iter_init (reply, &iter); @@ -682,6 +683,7 @@ polkit_caller_new_from_pid (DBusConnection *con, pid_t pid, DBusError *error) /* OK, this is not a catastrophe; just means the caller is not a * member of any session or that ConsoleKit is not available.. */ + dbus_error_free (error); goto not_in_session; } dbus_message_iter_init (reply, &iter); -- 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