Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
PolicyKit
PolicyKit-0.9-polkit_context_is_caller_authoriz...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PolicyKit-0.9-polkit_context_is_caller_authorized.diff of Package PolicyKit
From f3f0bc45b499067dc7b07a1f61b7eb64837c23fa Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Wed, 17 Jun 2009 15:21:42 +0200 Subject: [PATCH] don't ignore errors in polkit_context_is_caller_authorized (bnc#509108) --- src/polkit/polkit-context.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/polkit/polkit-context.c b/src/polkit/polkit-context.c index 14d08f0..3afd942 100644 --- a/src/polkit/polkit-context.c +++ b/src/polkit/polkit-context.c @@ -921,7 +921,12 @@ polkit_context_is_caller_authorized (PolKitContext *pk_context, revoke_if_one_shot, &from_authdb, &from_authdb_negative, - NULL /* TODO */)) { + error)) { + + if (error && polkit_error_is_set (*error)) { + goto out; + } + if (from_authdb) result_from_grantdb = POLKIT_RESULT_YES; } -- 1.6.2.1
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