diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-16 12:30:44 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-19 04:36:32 +0200 |
commit | 69e7d2efdfd5b8f8593db73d007e4cdd8c6f1e2c (patch) | |
tree | 38e1105ee3f2b609d64e0b315eb72281c4dbdf70 /src/timedate/timedatectl.c | |
parent | resolve: inherit server userdata (diff) | |
download | systemd-69e7d2efdfd5b8f8593db73d007e4cdd8c6f1e2c.tar.xz systemd-69e7d2efdfd5b8f8593db73d007e4cdd8c6f1e2c.zip |
timedatectl: enable interactive authentication for DBus methods
Diffstat (limited to '')
-rw-r--r-- | src/timedate/timedatectl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index f9ca15cc81..b430973976 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -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); } |