summaryrefslogtreecommitdiff
path: root/src/common/unionfs.c
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-02-25 10:04:52 -0800
committerslioch <slioch@eng-140.vyatta.com>2009-02-25 10:04:52 -0800
commitb68727e0a5612412750fbd8b1f784c040f22239f (patch)
treeb4086ec408e58cfc5ffb5d3fd15d4a0de8ee2a7d /src/common/unionfs.c
parent16d75b2dff96b35f433b55104f0ea8ae5c92b9d5 (diff)
downloadvyatta-cfg-b68727e0a5612412750fbd8b1f784c040f22239f.tar.gz
vyatta-cfg-b68727e0a5612412750fbd8b1f784c040f22239f.zip
nested priority case under interfaces need mkdir with -p option to set
up parent directories before parent priority is visited.
Diffstat (limited to 'src/common/unionfs.c')
-rw-r--r--src/common/unionfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 7cdb03c..760fd19 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -274,7 +274,7 @@ retrieve_data(char* rel_data_path, GNode *node, char* root, NODE_OPERATION op)
strcmp(dirp->d_name, VALUE_FILE) != 0) {
processed = TRUE;
char *data_buf = malloc(MAX_LENGTH_DIR_PATH*sizeof(char));
- if (strncmp(dirp->d_name,DELETED_NODE,4) == 0) {
+ if (strncmp(dirp->d_name,DELETED_NODE,4) == 0) {
strcpy(data_buf,dirp->d_name+4); //SKIP THE .WH.
//create new node and insert...
@@ -1121,7 +1121,7 @@ copy_func(GNode *node, gpointer data)
char *command = malloc(MAX_LENGTH_DIR_PATH);
struct SrcDst *sd = (struct SrcDst*)data;
- static const char format[]="mkdir %s%s";/*tmpp, adirp*/
+ static const char format[]="mkdir -p %s%s";/*tmpp, adirp*/
static const char format_value[]="cp %s%snode.val %s%s.";/*tmpp, adirp*/
char *path = ((struct VyattaNode*)(node->data))->_data._path;