summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--__root__/ccs-flatten/restree.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/__root__/ccs-flatten/restree.c b/__root__/ccs-flatten/restree.c
index 96ddfee..57319e7 100644
--- a/__root__/ccs-flatten/restree.c
+++ b/__root__/ccs-flatten/restree.c
@@ -136,6 +136,13 @@ res_do_flatten(xmlNode ** xpp, xmlNode * rmp, resource_node_t * node, const char
}
}
+
+ /* also restore some meta-attributes */
+ if (node->rn_flags &= (RF_INDEPENDENT|RF_NON_CRITICAL)) {
+ xmlSetProp(n, (xmlChar *) "__independent_subtree",
+ (xmlChar *) (node->rn_flags&RF_NON_CRITICAL ? "2" : "1"));
+ }
+
if (!*xpp) {
/* Add top-level container */
*xpp = n;