dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0029-lscpu-use-the-first-VM-from-proc-sysinfo.patch

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