fe1ca8
From 6f16035b81cd7feca02d6df8eff1bb954ed7e58d Mon Sep 17 00:00:00 2001
fe1ca8
From: Karel Zak <kzak@redhat.com>
fe1ca8
Date: Tue, 4 Sep 2018 14:30:37 +0200
fe1ca8
Subject: [PATCH 29/32] lscpu: use the first VM from /proc/sysinfo
fe1ca8
fe1ca8
Addresses: https://github.com/karelzak/util-linux/issues/685
fe1ca8
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1739443
fe1ca8
Upstream: http://github.com/karelzak/util-linux/commit/350f5c8df2cb6edbfb5bae95f00a9fff446d236c
fe1ca8
Signed-off-by: Karel Zak <kzak@redhat.com>
fe1ca8
---
fe1ca8
 sys-utils/lscpu.c | 1 +
fe1ca8
 1 file changed, 1 insertion(+)
fe1ca8
fe1ca8
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
fe1ca8
index fd6d63bbf..1aa7bff4d 100644
fe1ca8
--- a/sys-utils/lscpu.c
fe1ca8
+++ b/sys-utils/lscpu.c
fe1ca8
@@ -866,6 +866,7 @@ read_hypervisor(struct lscpu_desc *desc, struct lscpu_modifier *mod)
fe1ca8
 				*(str--) = '\0';
fe1ca8
 			while ((str = strstr(desc->hypervisor, "  ")))
fe1ca8
 				memmove(str, str + 1, strlen(str));
fe1ca8
+			break;
fe1ca8
 		}
fe1ca8
 		fclose(fd);
fe1ca8
 	}
fe1ca8
-- 
fe1ca8
2.21.0
fe1ca8