diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-03-29 10:40:13 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-03-29 10:40:13 -0700 |
commit | c64bca6d04c613b9e617b80aa3f77086d425c030 (patch) | |
tree | 2b693438bfd8e28c82fab4f4091f6539498e12ec | |
parent | 6848fbee522dee4d01f49b9354ad0b728ebce516 (diff) | |
download | vyatta-cfg-c64bca6d04c613b9e617b80aa3f77086d425c030.tar.gz vyatta-cfg-c64bca6d04c613b9e617b80aa3f77086d425c030.zip |
changed double quotes to single quotes on in commit actions.
-rw-r--r-- | src/common/unionfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c index 19149d2..b573d17 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -633,10 +633,10 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy, } char *command = malloc(MAX_LENGTH_DIR_PATH); static const char format0[]="mkdir -p %s ; /bin/true"; - static const char formatpoint5[]="rm -fr \"%s\""; /*tmpp*/ + static const char formatpoint5[]="rm -fr '%s'"; /*tmpp*/ static const char format1[]="cp -r -f %s/* %s"; /*mdirp, tmpp*/ static const char format1point1[]="mv -f %s/* -t %s"; /*mdirp, tmpp*/ - static const char format1point5[]="rm -fr \"%s\"/*"; /*tmpp*/ + static const char format1point5[]="rm -fr '%s'/*"; /*tmpp*/ static const char format2[]="sudo umount %s"; //mdirp static const char format8[]="sudo mount -t unionfs -o dirs=%s=rw:%s=ro unionfs %s"; //cdirp, adirp, mdirp @@ -773,7 +773,7 @@ common_commit_clean_temp_config(GNode *root_node, boolean test_mode) command = malloc(MAX_LENGTH_DIR_PATH); static const char format2[]="sudo umount %s"; //mdirp static const char format3[]="rm -f %s/" MOD_NAME " >&/dev/null ; /bin/true"; /*tmpp*/ - static const char format5[]="rm -fr \"%s\"/{.*,*} >&/dev/null ; /bin/true"; /*cdirp*/ + static const char format5[]="rm -fr '%s'/{.*,*} >&/dev/null ; /bin/true"; /*cdirp*/ static const char format7[]="sudo mount -t unionfs -o dirs=%s=rw:%s=ro unionfs %s"; //cdirp, adirp, mdirp @@ -1204,8 +1204,8 @@ delete_func(GNode *node, gpointer data) char *command = malloc(MAX_LENGTH_DIR_PATH); //DONT HAVE THE COMMAND BELOW BLOW AWAY WHITEOUT FILES!!!!! - static const char format[]="rm -f \"%s%s\"{*,.*} >&/dev/null;rmdir %s%s >&/dev/null ; /bin/true"; //need to remove opaque file. - static const char format_force_delete[]="rm -f \"%s%s\"{*,.*} >&/dev/null;rmdir %s%s >&/dev/null ; /bin/true"; //force delete as this is a delete operation with dependency + static const char format[]="rm -f '%s%s'{*,.*} >&/dev/null;rmdir %s%s >&/dev/null ; /bin/true"; //need to remove opaque file. + static const char format_force_delete[]="rm -f '%s%s'{*,.*} >&/dev/null;rmdir %s%s >&/dev/null ; /bin/true"; //force delete as this is a delete operation with dependency static const char delete_format[]="rm %s%s../.wh.%s >&/dev/null"; @@ -1282,7 +1282,7 @@ delete_wh_func(GNode *node, gpointer data) } char abuf[MAX_LENGTH_DIR_PATH]; - static const char format0[]="rm -fr \"%s\" >&/dev/null ; /bin/true"; + static const char format0[]="rm -fr '%s' >&/dev/null ; /bin/true"; struct SrcDst *sd = (struct SrcDst*)data; GNode *parent_node = node->parent; |