84b277
From 4c05a1381fbedaebe3832da433e4e10c682d6384 Mon Sep 17 00:00:00 2001
84b277
From: Lukas Nykryn <lnykryn@redhat.com>
84b277
Date: Fri, 12 Sep 2014 15:23:50 +0200
84b277
Subject: [PATCH] systemd-detect-virt: fix detect s390 virtualization
84b277
84b277
rhel-only patch
84b277
84b277
Related: #1139149
84b277
---
84b277
 src/shared/virt.c | 4 ++--
84b277
 1 file changed, 2 insertions(+), 2 deletions(-)
84b277
84b277
diff --git a/src/shared/virt.c b/src/shared/virt.c
84b277
index 5466d97..fca8515 100644
84b277
--- a/src/shared/virt.c
84b277
+++ b/src/shared/virt.c
84b277
@@ -182,9 +182,9 @@ int detect_vm(const char **id) {
84b277
                 r = get_status_field("/proc/sysinfo", "VM00 Control Program:", &t);
84b277
                 if (r >= 0) {
84b277
                         if (streq(t, "z/VM"))
84b277
-                                _id = "zvm";
84b277
+                                *id = "zvm";
84b277
                         else
84b277
-                                _id = "kvm";
84b277
+                                *id = "kvm";
84b277
 
84b277
                         return 1;
84b277
                 }