timedatectl: enable interactive authentication for DBus methods

This commit is contained in:
Yu Watanabe 2024-08-16 19:30:44 +09:00
parent 470cea62da
commit 69e7d2efdf

View File

@ -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);
}