mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 15:40:26 +00:00
hostname: Make sure we pass error to bus_verify_polkit_async()
Fixes #28943
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
c9c4e599fc
commit
b56ee69233
@@ -1318,7 +1318,7 @@ static int method_describe(sd_bus_message *m, void *userdata, sd_bus_error *erro
|
||||
false,
|
||||
UID_INVALID,
|
||||
&c->polkit_registry,
|
||||
NULL);
|
||||
error);
|
||||
if (r == 0)
|
||||
return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */
|
||||
|
||||
|
||||
@@ -480,6 +480,7 @@ int bus_verify_polkit_async(
|
||||
assert(call);
|
||||
assert(action);
|
||||
assert(registry);
|
||||
assert(ret_error);
|
||||
|
||||
r = check_good_user(call, good_user);
|
||||
if (r != 0)
|
||||
|
||||
Reference in New Issue
Block a user