X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fhostnamed.c;h=f3b2c941731836fe5dfb751c9885ec88f8006c59;hp=9e8825da75599e3db0b27421d37910fe424c0fa1;hb=9f84624270432cdff35c4f499fbdb9e0f94fe705;hpb=ad740100d108282d0244d5739d4dcc86fe4c5fde diff --git a/src/hostnamed.c b/src/hostnamed.c index 9e8825da7..f3b2c9417 100644 --- a/src/hostnamed.c +++ b/src/hostnamed.c @@ -31,6 +31,7 @@ #include "dbus-common.h" #include "polkit.h" #include "def.h" +#include "virt.h" #define INTERFACE \ " \n" \ @@ -233,7 +234,7 @@ static int write_data_other(void) { assert(name[p]); if (isempty(data[p])) { - l = strv_env_unset(l, name[p]); + strv_env_unset(l, name[p]); continue; } @@ -396,7 +397,7 @@ static DBusHandlerResult hostname_message_handler( return bus_send_error_reply(connection, message, NULL, r); } - log_info("Changed static host name to '%s'", strempty(data[PROP_HOSTNAME])); + log_info("Changed static host name to '%s'", strempty(data[PROP_STATIC_HOSTNAME])); changed = bus_properties_changed_new( "/org/freedesktop/hostname1",