removed Makefile from svn

support for scenario switching
This commit is contained in:
Martin Willi
2007-08-09 07:14:56 +00:00
parent fd4ded974d
commit 10c6cc0a36
6 changed files with 81 additions and 560 deletions
+6 -2
View File
@@ -259,6 +259,11 @@ static bool set_scenario(private_guest_t *this, char *path)
char dir[PATH_MAX];
size_t len;
if (path == NULL)
{
return this->cowfs->set_scenario(this->cowfs, NULL);
}
len = snprintf(dir, sizeof(dir), "%s/%s", path, this->name);
if (len < 0 || len >= sizeof(dir))
{
@@ -272,8 +277,7 @@ static bool set_scenario(private_guest_t *this, char *path)
return FALSE;
}
}
this->cowfs->set_scenario(this->cowfs, dir);
return TRUE;
return this->cowfs->set_scenario(this->cowfs, dir);
}
/**