Blame SOURCES/pacemaker-7170ed-fix-acl-correctly-implement-the-reference-acl-direct.patch

1f016a
From 7170ed6129d7381f3adab964d8295f00f7c4b776 Mon Sep 17 00:00:00 2001
1f016a
From: Andrew Beekhof <andrew@beekhof.net>
1f016a
Date: Mon, 12 Jan 2015 13:45:17 +1100
1f016a
Subject: [PATCH] Fix: acl: Correctly implement the 'reference' acl directive
1f016a
1f016a
---
1f016a
 lib/common/xml.c | 3 +--
1f016a
 1 file changed, 1 insertion(+), 2 deletions(-)
1f016a
1f016a
diff --git a/lib/common/xml.c b/lib/common/xml.c
1f016a
index 54f1aa7..2c476dc 100644
1f016a
--- a/lib/common/xml.c
1f016a
+++ b/lib/common/xml.c
1f016a
@@ -653,8 +653,7 @@ __xml_acl_create(xmlNode * xml, xmlNode *target, enum xml_private_flags mode)
1f016a
             if(tag) {
1f016a
                 offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "//%s", tag);
1f016a
             } else {
1f016a
-                /* Is this even legal xpath syntax? */
1f016a
-                offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "*");
1f016a
+                offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "//*");
1f016a
             }
1f016a
 
1f016a
             if(ref || attr) {
1f016a
-- 
1f016a
1.8.4.2
1f016a