- update hv_kvp_daemon: The current win7 host does not like it when

we return the complete kernel release information. Conform to
  what the host expects.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=14
This commit is contained in:
Olaf Hering 2011-07-24 15:24:20 +00:00 committed by Git OBS Bridge
parent 2fc6efd214
commit ed4012d365
2 changed files with 17 additions and 1 deletions

View File

@ -119,6 +119,15 @@ void kvp_get_os_info(void)
os_build = uts_buf.release;
processor_arch= uts_buf.machine;
/*
* The current windows host (win7) expects the build
* string to be of the form: x.y.z
* Strip additional information we may have.
*/
p = strchr(os_build, '-');
if (p)
*p = '\0';
file = fopen("/etc/SuSE-release", "r");
if (file != NULL)
goto kvp_osinfo_found;
@ -227,7 +236,7 @@ kvp_get_ip_address(int family, char *buffer, int length)
/*
* We only support AF_INET and AF_INET6
* and the list of addresses is seperated by a ";".
* and the list of addresses is separated by a ";".
*/
struct sockaddr_in6 *addr =
(struct sockaddr_in6 *) curp->ifa_addr;

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Jul 24 17:22:41 CEST 2011 - ohering@suse.de
- update hv_kvp_daemon: The current win7 host does not like it when
we return the complete kernel release information. Conform to
what the host expects.
-------------------------------------------------------------------
Fri Jun 17 15:41:33 CEST 2011 - ohering@suse.de