mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08:00
timedatectl: enable interactive authentication for DBus methods
This commit is contained in:
parent
470cea62da
commit
69e7d2efdf
@ -1041,6 +1041,8 @@ static int run(int argc, char *argv[]) {
|
||||
if (r < 0)
|
||||
return bus_log_connect_error(r, arg_transport);
|
||||
|
||||
(void) sd_bus_set_allow_interactive_authorization(bus, arg_ask_password);
|
||||
|
||||
return timedatectl_main(bus, argc, argv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user