diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:11:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:11:50 +0000 |
commit | 1c18acfb8deba40b27aafc4aaa854c43edcdca04 (patch) | |
tree | 2701cca71473795611f99886cd09755889ce7a86 /polkit_result.patch | |
parent | 10ca764c25bed5ecc94b3606187265b6149f36b7 (diff) |
automatic import of cups-pk-helperopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'polkit_result.patch')
-rw-r--r-- | polkit_result.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/polkit_result.patch b/polkit_result.patch new file mode 100644 index 0000000..b2a0ac2 --- /dev/null +++ b/polkit_result.patch @@ -0,0 +1,11 @@ +--- 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, |