summaryrefslogtreecommitdiff
path: root/src/common/unionfs.c
diff options
context:
space:
mode:
authorMichael Larson <mike@ft1.vyatta.com>2009-11-10 12:04:23 -0800
committerMichael Larson <mike@ft1.vyatta.com>2009-11-10 12:04:23 -0800
commit3238b588efc4bc2766edeaec9b1d0369815186f7 (patch)
treeda367f1442295e4526b76e6d906ceb33d79d3cee /src/common/unionfs.c
parentbf3f4c673ff781356c38716d23c975db90b490ad (diff)
downloadvyatta-cfg-3238b588efc4bc2766edeaec9b1d0369815186f7.tar.gz
vyatta-cfg-3238b588efc4bc2766edeaec9b1d0369815186f7.zip
preserve node.val order for term multinodes. fix for bug 5103
Diffstat (limited to 'src/common/unionfs.c')
-rw-r--r--src/common/unionfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 452c774..ed40bf8 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -1023,8 +1023,9 @@ dlist_test_func(GQuark key_id,gpointer data,gpointer user_data)
if (vn->_data._value == TRUE) {
new_vn = copy_vyatta_node(vn);
GNode *new_node = g_node_new(new_vn);
- //g_node_insert(node, -1, new_node);
- insert_sibling_in_order(node,new_node);
+ // g_node_insert(node, -1, new_node);
+ g_node_insert_after(node, NULL, new_node);
+ // insert_sibling_in_order(node,new_node);
new_vn->_config._def = vn->_config._def;
}
else {