Blame SOURCES/0002-qemu-Fix-transcription-error-in-conversion-of-yajl-t.patch
|
|
d0ea73 |
From 898e6c1e39deb130566220a11a2eaf2dcb2cb733 Mon Sep 17 00:00:00 2001
|
|
|
d0ea73 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
d0ea73 |
Date: Thu, 29 Mar 2018 20:18:34 +0100
|
|
|
d0ea73 |
Subject: [PATCH] qemu: Fix transcription error in conversion of yajl to
|
|
|
d0ea73 |
jansson.
|
|
|
d0ea73 |
|
|
|
d0ea73 |
This broke qemu mandatory locking detection.
|
|
|
d0ea73 |
|
|
|
d0ea73 |
Fixes commit bd1c5c9f4dcf38458099db8a0bf4659a07ef055d.
|
|
|
d0ea73 |
|
|
|
d0ea73 |
(cherry picked from commit e79286f71738d9385157d9e87211be02645722c3)
|
|
|
d0ea73 |
---
|
|
|
d0ea73 |
lib/qemu.c | 2 +-
|
|
|
d0ea73 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d0ea73 |
|
|
|
d0ea73 |
diff --git a/lib/qemu.c b/lib/qemu.c
|
|
|
d0ea73 |
index a50eca988..3e7f15946 100644
|
|
|
d0ea73 |
--- a/lib/qemu.c
|
|
|
d0ea73 |
+++ b/lib/qemu.c
|
|
|
d0ea73 |
@@ -616,7 +616,7 @@ guestfs_int_qemu_mandatory_locking (guestfs_h *g,
|
|
|
d0ea73 |
members = json_object_get (v, "members");
|
|
|
d0ea73 |
if (json_is_array (members)) {
|
|
|
d0ea73 |
json_array_foreach (members, j, m) {
|
|
|
d0ea73 |
- name = json_object_get (v, "name");
|
|
|
d0ea73 |
+ name = json_object_get (m, "name");
|
|
|
d0ea73 |
if (json_is_string (name) &&
|
|
|
d0ea73 |
STREQ (json_string_value (name), "locking"))
|
|
|
d0ea73 |
return 1;
|
|
|
d0ea73 |
--
|
|
|
ca1ab6 |
2.21.0
|
|
|
d0ea73 |
|