diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2020-06-22 20:19:36 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2020-07-13 17:44:58 -0500 |
commit | 0d3a8f32b1e0eca279da1b0cc793efc7250c3daf (patch) | |
tree | ceda40b154f14358f7a0b76a5168429fc5c29951 /docs/multiseat.txt | |
parent | e47f4765afcab2b78dfa5b0115abf64d1d49a5d3 (diff) |
qga: Use qemu_get_host_name() instead of g_get_host_name()
Problem with g_get_host_name() is that on the first call it saves
the hostname into a global variable and from then on, every
subsequent call returns the saved hostname. Even if the hostname
changes. This doesn't play nicely with guest agent, because if
the hostname is acquired before the guest is set up (e.g. on the
first boot, or before DHCP) we will report old, invalid hostname.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1845127
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'docs/multiseat.txt')
0 files changed, 0 insertions, 0 deletions