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:
parent
026e7ea095
commit
7d936b3cdf
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue