1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

Do not fail if host name cannot be read over DBUS

Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
This commit is contained in:
Andrey Gusakov 2014-08-29 14:16:56 +04:00 committed by albfan
parent 026e7ea095
commit 7d936b3cdf

View file

@ -339,7 +339,7 @@ static void manager_read_name(struct manager *m)
r = sd_bus_message_read(rep, "s", &name);
if (r < 0)
goto error;
name = "undefined";
if (shl_isempty(name)) {
log_warning("no hostname set on systemd.hostname1, using: %s",