* allow to load templates from arbitrary places

* changed implementation of guest?/iface?
This commit is contained in:
Tobias Brunner
2008-08-28 08:05:07 +00:00
parent 6c20579a43
commit 8bbc7ca710
4 changed files with 19 additions and 48 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ static bool load_template(private_guest_t *this, char *path)
}
if (access(dir, F_OK) != 0)
{
if (mkdir(dir, PERME) != 0)
if (!mkdir_p(dir, PERME))
{
DBG1("creating overlay for guest '%s' failed: %m", this->name);
return FALSE;