projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c71b501
)
bus-polkit: fix return value for `varlink_allow_interactive_authentication()`
author
Antonio Alvarez Feijoo
<antonio.feijoo@suse.com>
Fri, 12 Apr 2024 08:53:40 +0000
(10:53 +0200)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Fri, 12 Apr 2024 12:26:22 +0000
(13:26 +0100)
Follow-up for
d04c1a1c8e7c95daa483d8d52d5fc4c25fbc67f2
src/shared/bus-polkit.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-polkit.c
b/src/shared/bus-polkit.c
index e0e9e879540110035efce97282d7f034b7b0503f..c0752b59bb0c596926d30a53663369a2c716c49e 100644
(file)
--- a/
src/shared/bus-polkit.c
+++ b/
src/shared/bus-polkit.c
@@
-728,8
+728,10
@@
static bool varlink_allow_interactive_authentication(Varlink *link) {
* always under the same name. */
r = varlink_get_current_parameters(link, &v);
- if (r < 0)
- return r;
+ if (r < 0) {
+ log_debug_errno(r, "Unable to query current parameters: %m");
+ return false;
+ }
JsonVariant *b;
b = json_variant_by_key(v, "allowInteractiveAuthentication");