diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-02-11 00:13:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-02-11 00:13:10 +0100 |
commit | 89f134406af6a4b4c7493f624a89dcd654b48e81 (patch) | |
tree | b6fd1211fe1c7ee28df1ccd4fbd921509b8342ac /src/hostname | |
parent | 4c2b0e4e423fe73fafef10a5efa6fb778784cebc (diff) |
logind: introduce CanReboot/CanPowerOff bus calls
Diffstat (limited to 'src/hostname')
-rw-r--r-- | src/hostname/hostnamed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 1340c29dd5..ad72440845 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -332,7 +332,7 @@ static DBusHandlerResult hostname_message_handler( if (!streq_ptr(name, data[PROP_HOSTNAME])) { char *h; - r = verify_polkit(connection, message, "org.freedesktop.hostname1.set-hostname", interactive, &error); + r = verify_polkit(connection, message, "org.freedesktop.hostname1.set-hostname", interactive, NULL, &error); if (r < 0) return bus_send_error_reply(connection, message, &error, r); @@ -376,7 +376,7 @@ static DBusHandlerResult hostname_message_handler( if (!streq_ptr(name, data[PROP_STATIC_HOSTNAME])) { - r = verify_polkit(connection, message, "org.freedesktop.hostname1.set-static-hostname", interactive, &error); + r = verify_polkit(connection, message, "org.freedesktop.hostname1.set-static-hostname", interactive, NULL, &error); if (r < 0) return bus_send_error_reply(connection, message, &error, r); @@ -441,7 +441,7 @@ static DBusHandlerResult hostname_message_handler( r = verify_polkit(connection, message, k == PROP_PRETTY_HOSTNAME ? "org.freedesktop.hostname1.set-static-hostname" : - "org.freedesktop.hostname1.set-machine-info", interactive, &error); + "org.freedesktop.hostname1.set-machine-info", interactive, NULL, &error); if (r < 0) return bus_send_error_reply(connection, message, &error, r); |