From 2c22465441bbb7bdd40bf7a12bbdeb8390e32471 Mon Sep 17 00:00:00 2001 From: slioch Date: Mon, 1 Jun 2009 11:55:47 -0700 Subject: fix for bug 4451. preserve empty values on leaf nodes. --- src/common/unionfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common/unionfs.c b/src/common/unionfs.c index b259b5d..24ff28f 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -980,8 +980,10 @@ get_term_data_values(GNode *node) data = (struct ValueData*)calloc(1, sizeof(struct ValueData)); if ((tok_str_active == NULL || tok_str_active[0] == NULL) && (tok_str_new == NULL || tok_str_new[0] == NULL)) { - // data->_state = K_NO_OP; - // g_datalist_set_data(&datalist, tok_str_active[0], data); + cp = malloc(MAX_LENGTH_DIR_PATH*sizeof(char)); + cp[0] = '\0'; + data->_state = ((struct VyattaNode*)node->parent->data)->_data._operation; + g_datalist_set_data(&datalist, cp, data); } else if (tok_str_active == NULL || tok_str_active[0] == NULL) { data->_state = K_CREATE_OP; -- cgit v1.2.3