valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0001-systemd-detect-virt-fix-detect-s390-virtualization.patch

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