File bsc#1127716-0003-Fix-libcrmcommon-return-error-when-applying-XML-diff.patch of Package pacemaker.14738

From e6b2bf0cf7e7ed839583d529b190a7a6cd1bd594 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Tue, 30 Apr 2019 00:19:46 +0200
Subject: [PATCH 3/3] Fix: libcrmcommon: return error when applying XML diffs
 containing unknown operations

---
 lib/common/xml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/common/xml.c b/lib/common/xml.c
index fe87de66c..940c4b91a 100644
--- a/lib/common/xml.c
+++ b/lib/common/xml.c
@@ -1573,6 +1573,7 @@ xml_apply_patchset_v2(xmlNode *xml, xmlNode *patchset)
 
         } else {
             crm_err("Unknown operation: %s", op);
+            rc = -pcmk_err_diff_failed;
         }
     }
 
-- 
2.16.4

openSUSE Build Service is sponsored by