summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-02-11 00:13:10 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-11 00:13:10 +0100
commit89f134406af6a4b4c7493f624a89dcd654b48e81 (patch)
treeb6fd1211fe1c7ee28df1ccd4fbd921509b8342ac /src/timedate
parent4c2b0e4e423fe73fafef10a5efa6fb778784cebc (diff)
logind: introduce CanReboot/CanPowerOff bus calls
Diffstat (limited to 'src/timedate')
-rw-r--r--src/timedate/timedated.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 97306e9a32..792c61a7d7 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -553,7 +553,7 @@ static DBusHandlerResult timedate_message_handler(
if (!streq_ptr(z, tz.zone)) {
char *t;
- r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-timezone", interactive, &error);
+ r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-timezone", interactive, NULL, &error);
if (r < 0)
return bus_send_error_reply(connection, message, &error, r);
@@ -611,7 +611,7 @@ static DBusHandlerResult timedate_message_handler(
if (lrtc != tz.local_rtc) {
struct timespec ts;
- r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-local-rtc", interactive, &error);
+ r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-local-rtc", interactive, NULL, &error);
if (r < 0)
return bus_send_error_reply(connection, message, &error, r);
@@ -702,7 +702,7 @@ static DBusHandlerResult timedate_message_handler(
struct timespec ts;
struct tm* tm;
- r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-time", interactive, &error);
+ r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-time", interactive, NULL, &error);
if (r < 0)
return bus_send_error_reply(connection, message, &error, r);
@@ -741,7 +741,7 @@ static DBusHandlerResult timedate_message_handler(
if (ntp != !!tz.use_ntp) {
- r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-ntp", interactive, &error);
+ r = verify_polkit(connection, message, "org.freedesktop.timedate1.set-ntp", interactive, NULL, &error);
if (r < 0)
return bus_send_error_reply(connection, message, &error, r);