summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <mike@ft1.vyatta.com>2009-09-11 15:11:56 -0700
committerMichael Larson <mike@ft1.vyatta.com>2009-09-16 10:37:22 -0700
commit97f717a0b682c03323bf5f2eedca4d82dcd936cb (patch)
tree84fb10881d2409b036a95bcd5e3250d9c5529714
parent8051ffcda47920c4bb88eb8cea424798cbf3ac3c (diff)
downloadvyatta-cfg-97f717a0b682c03323bf5f2eedca4d82dcd936cb.tar.gz
vyatta-cfg-97f717a0b682c03323bf5f2eedca4d82dcd936cb.zip
add support for value tags on term multinodes. used in debugging output and accounting file.
-rw-r--r--src/common/unionfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 6d71402..8721651 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -1040,7 +1040,9 @@ dlist_test_func(GQuark key_id,gpointer data,gpointer user_data)
new_vn = vn;
// strcat(new_vn->_data._path,"/");
strcat(new_vn->_data._path,"/value:");
- strcat(new_vn->_data._path,(char*)g_quark_to_string(key_id));
+ if (vn_parent->_config._def.multi == FALSE) {
+ strcat(new_vn->_data._path,(char*)g_quark_to_string(key_id));
+ }
}
new_vn->_data._value = TRUE;
strcpy(new_vn->_data._name,(char*)g_quark_to_string(key_id));