aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm/guest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dumm/guest.c')
-rw-r--r--src/dumm/guest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dumm/guest.c b/src/dumm/guest.c
index 6ba14e028..55d4f12b5 100644
--- a/src/dumm/guest.c
+++ b/src/dumm/guest.c
@@ -277,13 +277,13 @@ static bool mount_unionfs(private_guest_t *this)
char master[PATH_MAX];
char diff[PATH_MAX];
char mount[PATH_MAX];
-
- snprintf(master, sizeof(master), "%s/%s", this->dirname, MASTER_DIR);
- snprintf(diff, sizeof(diff), "%s/%s", this->dirname, DIFF_DIR);
- snprintf(mount, sizeof(mount), "%s/%s", this->dirname, UNION_DIR);
if (this->cowfs == NULL)
{
+ snprintf(master, sizeof(master), "%s/%s", this->dirname, MASTER_DIR);
+ snprintf(diff, sizeof(diff), "%s/%s", this->dirname, DIFF_DIR);
+ snprintf(mount, sizeof(mount), "%s/%s", this->dirname, UNION_DIR);
+
this->cowfs = cowfs_create(master, diff, mount);
if (this->cowfs)
{