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