Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37559155
en ru br
ALT Linux repos
S:0.2.7-alt1

Group :: System/Libraries
RPM: cups-pk-helper

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: polkit_result.patch
Download


--- cups-pk-helper-0.1.3/src/cups-pk-helper-mechanism.c	2011-09-02 11:30:26.000000000 +0200
+++ cups-pk-helper-0.1.3/src/cups-pk-helper-mechanism.c	2011-09-02 11:31:34.000000000 +0200
@@ -291,7 +291,7 @@ _check_polkit_for_action_internal (CphMe
                 return FALSE;
         }
 
-        if (!polkit_authorization_result_get_is_authorized (pk_result)) {
+        if (pk_result == NULL || !polkit_authorization_result_get_is_authorized (pk_result)) {
                 g_set_error (error,
                              CPH_MECHANISM_ERROR,
                              CPH_MECHANISM_ERROR_NOT_PRIVILEGED,
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin