From ed4012d365a67bfc555f22dfebc8e1cc10b1f9fa8fdcc6011eb0f501cf90d380 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sun, 24 Jul 2011 15:24:20 +0000 Subject: [PATCH] - 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 --- hv_kvp_daemon.c | 11 ++++++++++- hyper-v.changes | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c index 3d62d09..ed45bc9 100644 --- a/hv_kvp_daemon.c +++ b/hv_kvp_daemon.c @@ -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; diff --git a/hyper-v.changes b/hyper-v.changes index 45f02ee..c0a2b54 100644 --- a/hyper-v.changes +++ b/hyper-v.changes @@ -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